API
These sections detail the external (i.e. REST/Websocket) as well as the internal (i.e. Classes/Functions) API of Weacast.
You might read this introduction article about using Feathers in production because it has been used as a guideline for the development Weacast.
Testing
You will find here a collection of ready-to-go REST requests to test the API with the great POSTMAN tool. Simply download it and import it in your POSTMAN installation.
You should do the following:
- make your Weacast installation run (the collection is configured for default dev port
8080
but you can easily switch to8081
for production mode for instance or any other) - use the authenticate request with a registered user e-mail/password to retrieve an authorization token
- set this token in the header of other requests in order to be authorized to perform the request
- renew your token when expired (step 2)