Created
July 4, 2015 16:01
-
-
Save zaki-yama/191be3e62ee25019b4af to your computer and use it in GitHub Desktop.
apiary.apibを複数ファイルに分割する
This file contains hidden or 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
| FORMAT: 1A | |
| HOST: http://polls.apiblueprint.org/ | |
| # MyFirstAPI | |
| Polls is a simple API allowing consumers to view polls and vote in them. |
This file contains hidden or 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
| apiary.apib | |
| sub/api.apib |
This file contains hidden or 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
| # Polls API Root [/] | |
| This resource does not have any attributes. Instead it offers the initial | |
| API affordances in the form of the links in the JSON body. | |
| It is recommend to follow the “url” link values, | |
| [Link](https://tools.ietf.org/html/rfc5988) or Location headers where | |
| applicable to retrieve resources. Instead of constructing your own URLs, | |
| to keep your client decoupled from implementation details. | |
| ## Retrieve the Entry Point [GET] | |
| + Response 200 (application/json) | |
| { | |
| "questions_url": "/questions" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment