Skip to content

Instantly share code, notes, and snippets.

@zaki-yama
Created July 4, 2015 16:01
Show Gist options
  • Select an option

  • Save zaki-yama/191be3e62ee25019b4af to your computer and use it in GitHub Desktop.

Select an option

Save zaki-yama/191be3e62ee25019b4af to your computer and use it in GitHub Desktop.
apiary.apibを複数ファイルに分割する
FORMAT: 1A
HOST: http://polls.apiblueprint.org/
# MyFirstAPI
Polls is a simple API allowing consumers to view polls and vote in them.
apiary.apib
sub/api.apib
# 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