in actual projects, customers often clap their heads and decide to add and delete some status fields. take a chestnut, for example, to publish an article, the initial status status field has only two, one is the "unpublished " status, and the other is ...
problem description due to following the Restful API specification, the Get request method is difficult to design interfaces for multi-conditional queries the environmental background of the problems and what methods you have tried someone has p...
except for get requests, my current api is designed to pass parameters in body , and the background springmvc is received by @ requestbody. my idea is: if all are passed in url, the backend needs to write multiple parameters one by one, which is very t...
I now provide interfaces to the front end. When designing an API, should I try to complete an operation in one API or split it into multiple API? for example, do a function to upload a picture, upload the picture to the file and return it to url, an...
whether you can use throw new to throw a http exception when developing api; then it feels very simple. For example, if the user does not log in, the exception will be thrown directly, and the subsequent code will not be executed. customize a http ex...
recently, our company has developed a project. Are there any popular best practices for designing the JSON data format returned by the API interface for PC-based mobile phones and APP-based mobile web pages? the following versions have been found ve...
I use php to write an uploaded API for IOS APP to use just assume that the counterpart has successfully sent back how can I send 200 back to the counterpart? how can I implement this 200response so that the other party can access it? ...
suppose I have the following HTTP methods router.post( ,(req,res,next)=>{}) router.get( ,(req,res,next)=>{}) order router.get( :orderId ,(req,res,next)=>{}) order router.patch( :orderId ,(req,res,next)=>{}) order router.d...