fsiddiqi / nanoquote

API Design Demo for TechCom 2016

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nanoquote

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

Swagger UI

Then create a mock Quotes API using Sandbox

Steps

  • 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

Contributions

Updates to the swagger design and the mock API code are very welcome.

Useful links

About

API Design Demo for TechCom 2016

License:Apache License 2.0


Languages

Language:JavaScript 100.0%