Skip to content

Instantly share code, notes, and snippets.

@MSakamaki
Last active March 1, 2019 10:50
Show Gist options
  • Save MSakamaki/a0a0bf6fda0af9c7cf0550eed6f35c18 to your computer and use it in GitHub Desktop.
Save MSakamaki/a0a0bf6fda0af9c7cf0550eed6f35c18 to your computer and use it in GitHub Desktop.
rest api
GET /datas <= データ一覧取得
GET /datas/id <= 1件のデータ取得
GET /datas/id/column <= 特定データの特定項目を取得
POST /datas <= データ発生 (ここでIDができる)
PUT /datas/id <= 特定データの一括更新
PUT /datas/id/column <= 特定データを1個だけ更新
PATCH /datas/id <= 特定データの部分項目を更新
DELETE /datas/id <= 特定のリソース削除
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment