Created
November 28, 2015 04:17
-
-
Save johnnygoodman/5fd246765dc5236fb8c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"apiVersion":"v1","swaggerVersion":"1.2","resourcePath":"/messages","produces":["application/xml","application/json","application/octet-stream","text/plain"],"apis":[{"path":"/api/v1/messages","operations":[{"notes":"","summary":"Return all messages","nickname":"GET-api--version-messages--json-","method":"GET","parameters":[],"type":"void"},{"notes":"","summary":"Create and send a message","nickname":"POST-api--version-messages--json-","method":"POST","parameters":[{"paramType":"form","name":"title","description":"Title/Subject of the message","type":"string","required":true,"allowMultiple":false},{"paramType":"form","name":"body","description":"Body of the message","type":"string","required":true,"allowMultiple":false},{"paramType":"form","name":"user_id","description":"User ID of the message author","type":"integer","required":true,"allowMultiple":false,"format":"int32"},{"paramType":"body","name":"group_ids","description":"Group IDs of message targets, passed as a String and typecast as an array on the API side","type":"Array","required":false,"allowMultiple":false},{"paramType":"body","name":"user_ids","description":"User IDs of message targets, passed as a String and typecast as an array on the API side","type":"Array","required":false,"allowMultiple":false}],"type":"void"}]},{"path":"/api/v1/messages/{id}","operations":[{"notes":"","summary":"Return a message","nickname":"GET-api--version-messages--id--json-","method":"GET","parameters":[{"paramType":"path","name":"id","description":"ID of the message","type":"string","required":true,"allowMultiple":false}],"type":"void"}]}],"basePath":"http://localhost:3000/my-app.herokuapp.com"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment