下列哪个选项符合Restful的API 设计?
A: GET /deleteUser?id=123
B: POST /users/123/delete
C: DELETE /deleteUser/123
D: DELETE /users/123
A: GET /deleteUser?id=123
B: POST /users/123/delete
C: DELETE /deleteUser/123
D: DELETE /users/123
举一反三
- 下列哪个选项符合Restful的API 设计? A: GET /deleteUser?id=123 B: POST /users/123/delete C: DELETE /deleteUser/123 D: DELETE /users/123
- 下列哪个选项符合RESTful设计? A: GET/user/1234 B: GET/users/1234/ C: GET/deleteUser/1234 D: GET/users?role=admin
- 下列哪个选项不符合RESTful设计? A: GET /users/1234 B: GET /deleteUser/1234 C: GET /users?role=admin D: GET /users?pageSize=25&pageStartIndex=50
- a与b定义如下,下列哪个选项输出结果为True() a=’123’ b=’123’ A: a!=b B: a==123 C: b==123 D: a+b==‘123123’
- 多选题 A: 123 B: 123 C: 123 D: 123