Swagger declaration file for the Netatmo API
Described APIs are :
- Weather station
- Thermostat
- Cameras (Welcome and Presence)
- Enterprise
- Documentation(ReDoc): https://cbornet.github.io/netatmo-swagger-decl/
- SwaggerUI: https://cbornet.github.io/netatmo-swagger-decl/swagger-ui/
- Look full spec:
- Preview spec version for branch
[branch]
: https://cbornet.github.io/netatmo-swagger-decl/preview/[branch]
Warning: All above links are updated only after Travis CI finishes deployment
- Install Node JS
- Clone repo and
cd
- Run
npm install
- Run
The spec is located in the spec
directory. You can edit it manually or using a synchronized swagger-editor
- Run
npm start
- Checkout console output to see where local server is started. You can use all links (except
preview
) by replacing https://cbornet.github.io/netatmo-swagger-decl/ with url from the message:Server started <url>
- Make changes in the file
spec/swagger.yaml
using your favorite editor or inswagger-editor
(look for URL in console output) - All changes are immediately propagated to your local server, moreover all documentation pages will be automagically refreshed in a browser after each change
TIP: you can open
swagger-editor
, documentation andswagger-ui
in parallel - Once you finish with the changes you can run tests using:
npm test