Skip to content

Instantly share code, notes, and snippets.

@fernandoalmeida
Created March 17, 2020 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandoalmeida/bf441d4f29a57716bf4f127fc1d3c61a to your computer and use it in GitHub Desktop.
Save fernandoalmeida/bf441d4f29a57716bf4f127fc1d3c61a to your computer and use it in GitHub Desktop.
Swagger API doc test
{"info":{"description":"Poliedro API","title":"Atena API","version":"0.1.0"},"openapi":"3.0.0","paths":{"/api/v1/schools":{"get":{"description":"","parameters":[{"description":"","in":"header","name":"content-type","required":false,"schema":{"type":"string"}},{"description":"","in":"header","name":"accept","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/vnd":{"schema":{"properties":{"data":{"description":"","type":"string"},"jsonapi":{"description":"","type":"string"}},"type":"object"}}},"description":"index/1 returns a list of schools that the user has access","headers":{"cache-control":{"schema":{"type":"string"}},"content-type":{"schema":{"type":"string"}},"x-request-id":{"schema":{"type":"string"}}}}},"summary":""}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment