Skip to content

Instantly share code, notes, and snippets.

@yagays
Last active April 23, 2016 06:36
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 yagays/af69766e1b1e6acb595bf4bfe528079d to your computer and use it in GitHub Desktop.
Save yagays/af69766e1b1e6acb595bf4bfe528079d to your computer and use it in GitHub Desktop.
FORMAT: 1A
# レシピサイトWebAPIドキュメント
http://gotofritz.net/blog/weekly-challenge/restful-python-api-bottle/
## すべてのレシピのXMLを表示する [/recipes/]
### recipes_list [GET]
すべてのレシピのリストを返します。
+ Response 200 (application/json)
+ Attributes
+ success: False (boolean) - ステータス
+ path (array) - XMLファイルパス
+ error: show not implemented yet (string) - エラーメッセージ
## 特定のレシピを表示する [/recipes/{name}]
+ Parameters
+ name (string, required, `name`) - レシピの識別子
### recipe_show [GET]
+ Response 200 (application/json)
+ Attributes
+ error: show not implemented yet (string)
+ path: /PTH/TO/XML/name.xml (string)
+ success: False (boolean)
## レシピを削除する [/recipes/{name}]
+ Parameters
+ name (string, required, `name`) - レシピの識別子
### recipe_delete [DELETE]
+ Response 200 (application/json)
+ Attributes
+ success: False (boolean)
+ error: delete not implemented yet (string)
## レシピのXMLを追加する [/recipes/{name}]
+ Parameters
+ name (string, required, `name`) - レシピの識別子
### recipe_save [PUT]
+ Response 200 (application/json)
+ Attributes
+ success: False (boolean)
+ path: /PTH/TO/XML/name.xml (string)
+ error: save not implemented yet (string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment