REST Web Services API Design

后端 未结 5 1481
轻奢々
轻奢々 2021-02-01 23:13

Just wanted to get feedback on how I am planning to architect my API. Dummy methods below. Here\'s the structure:

GET http://api.domain.com/1/users/ <-- retur         


        
5条回答
  •  感情败类
    2021-02-02 00:03

    Using post for create and delete functionality is not a good rest api design strategy. Use Put to create, post to update and delete to delete the resources. For more information on designing rest apis follow the link - best practices to design rest apis

提交回复
热议问题