Skip to content

Instantly share code, notes, and snippets.

@hugueslamy
Last active October 2, 2020 17:03
Show Gist options
  • Save hugueslamy/c11e91cc1dfd1911ef9b79d5b6a4fe44 to your computer and use it in GitHub Desktop.
Save hugueslamy/c11e91cc1dfd1911ef9b79d5b6a4fe44 to your computer and use it in GitHub Desktop.
{"swagger":"2.0","info":{"version":"1.0.0","title":"Otonom Approbation system","description":"This API describe the information needed to interact with the approbation system of Otonom Solution","termsOfService":"https://www.otonomsolution.com/terms","contact":{"name":"OtonomSolution IT support","email":"[email protected]"}},"host":"localhost:3000","basePath":"/api/v1","schemes":["http","https"],"consumes":["application/json","text/plain"],"produces":["application/json","text/plain"],"paths":{"/organizations":{"get":{"summary":"All organization that you have access to","description":"Return all the organization name and basic information","operationId":"getAllOrganizations","produces":["application/json"],"tags":["Organizations"],"responses":{"200":{"description":"Organization response","schema":{"type":"array","items":{"$ref":"#/definitions/Organization"}},"examples":{"application/json":{"id":1,"name":"Test","created_at":"2020-09-30T21:48:36.133Z","updated_at":"2020-09-30T21:48:36.133Z","url":"http://localhost:3000/organizations/1.json"}}}}}}},"definitions":{"Organization":{"required":["id","name"],"properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"url":{"type":"string"}}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment