Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 2.14 KB

README.md

File metadata and controls

44 lines (33 loc) · 2.14 KB

Netatmo OpenAPI Specification

Build Status swagger

Swagger declaration file for the Netatmo API

Described APIs are :

  • Weather station
  • Thermostat
  • Cameras (Welcome and Presence)
  • Enterprise

Links

Warning: All above links are updated only after Travis CI finishes deployment

Working on specification

Install

  1. Install Node JS
  2. Clone repo and cd
    • Run npm install

Usage

The spec is located in the spec directory. You can edit it manually or using a synchronized swagger-editor

  1. Run npm start
  2. 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>
  3. Make changes in the file spec/swagger.yaml using your favorite editor or in swagger-editor (look for URL in console output)
  4. 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 and swagger-ui in parallel
  5. Once you finish with the changes you can run tests using: npm test

Thanks to contributors: