API Design Demo for TechCom 2016
NanoQuote will model and mock a very small resource model for Travel Insurance Quotes.
We'll model a Quotes resource using Swagger Editor
Then create a mock Quotes API using Sandbox
- Fork this repo or use
- Open the Swagger Editor and paste in the swagger spec in YAML format
- Get a Sandbox account or use your existing one to mock the API
- Import the YAML spec into sandbox to create API stubs
- Take a look at the api.js file in this repo and paste over the generated api.js on sandbox
- Save
- Test in a REST client of your choice
Updates to the swagger design and the mock API code are very welcome.
- The Swagger Specification
- Underscore.js docs - used in sandbox javascript code
- Demo Video