هࣄใҰཡΛऔಘ͢Δ: GET /api/articles
ID:1ͷهࣄใΛऔಘ͢Δ: GET /api/articles/1
هࣄใΛ࡞͢Δ: POST /api/articles
ID:1ͷهࣄใΛߋ৽͢Δ: PUT /api/articles/1
ID:1ͷهࣄใΛআ͢Δ: DELETE /api/articles/1
ԋश: HTTPϝιου
هࣄใҰཡΛऔಘ͢Δ: GET /api/articles
ID:1ͷهࣄใΛऔಘ͢Δ: GET /api/articles/1
هࣄใΛ࡞͢Δ: POST /api/articles
ID:1ͷهࣄใΛߋ৽: PUT /api/articles/1
ID:1ͷهࣄใΛআ͢Δ: DELETE /api/articles/1
ԋश: HTTPϝιου
Slide 86
Slide 86 text
GET /api/articles(200 OK)
GET /api/articles/1(200 OK)
POST /api/articles(???)
PUT /api/articles/1(???)
DELETE /api/articles/1(???)
ԋश: εςʔλείʔυ
Slide 87
Slide 87 text
GET /api/articles(200 OK)
GET /api/articles/1(200 OK)
POST /api/articles(201 Created)
PUT /api/articles/1(200 OK)
DELETE /api/articles/1(204 No Content)
ԋश: εςʔλείʔυ
Slide 88
Slide 88 text
HTTPϔομ
Slide 89
Slide 89 text
ΫϥΠΞϯταʔόͷ
ڍಈΛܾΊΔ
ՃใΛද͢
Slide 90
Slide 90 text
Ϩεϙϯε͕Ͳ͏͍͏ܗࣜͳͷ
͔Λڭ͑ͯ͘ΕΔ
application/json
image/png
e.g. Content-Type
Slide 91
Slide 91 text
POST /api/articles
Location: https://example.jp/
api/articles/2
ग़དྷ্͕ͬͨϦιʔεͷURLΛ
ڭ͑ͯ͋͛Δ
e.g. هࣄใΛѻ͏API