Skip to content

Instantly share code, notes, and snippets.

@JanDintel
Created August 6, 2015 14:31
Show Gist options
  • Save JanDintel/3146b58fcf19b0e2dd77 to your computer and use it in GitHub Desktop.
Save JanDintel/3146b58fcf19b0e2dd77 to your computer and use it in GitHub Desktop.
{"swagger":"2.0","info":{"version":"v0","title":"Test application","description":"Documents the V0 API of the Test application.","contact":{"name":"Jan"},"license":{"name":"MIT"}},"host":"localhost:3000","basePath":"/api/v0","consumes":["application/json"],"produces":["application/json"],"paths":{"/profiles":{"get":{"description":"Finds all Profiles","operationId":"findPets","responses":{"200":{"description":"Profiles response","schema":{"type":"array","items":{"$ref":"#/definitions/Profile"}}}}}},"/profiles/{id}":{"get":{"description":"Finds a Profile","operationId":"findPetById","parameters":[{"name":"id","in":"path","description":"Pseudonym of the Profile","required":true,"type":"string"}],"responses":{"200":{"description":"Profile response","schema":{"$ref":"#/definitions/Profile"}}}}}},"definitions":{"Profile":{"required":["id","type"],"properties":{"id":{"type":"string"},"type":{"type":"string"}}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment