Skip to content

02) helloRest

choi jae ho edited this page Feb 25, 2022 · 7 revisions

๐Ÿ“‹ RESTful api example

HTTP method uri description
GET /api/users returns a list of users
GET /api/users/1 returns the user with ID 1
POST /api/users creates a new user
PUT /api/users/3 updates the user with ID 3
DELETE /api/users/4 deletes the user with ID 4
DELETE /api/users deletes all the users

uri๋กœ ์ž์›์„ ์‹๋ณ„, HTTP ๋ฉ”์„œ๋“œ๋กœ CRUD ์‹คํ–‰.