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...
let MenuX = connect<AppState, MenuProps, MenuProps>(mapStateToProps)(Menu as any); mapStateToProps the following error TS2345: Argument of type (state: AppState) = > {title: string; fullModel: boolean; phone: boolean; backButton: boolean;} is ...
the company wants to use WeChat Mini Programs to make a mall, and then there is a user who recharges to the account, and then needs to be able to withdraw cash, or withdraw it to a bank card, after recharging. But WeChat Mini Programs seems to have only ...
problem description use mongoose in nodejs const query=myModel.find({name: xiaoming }); const total=query.count(); const data=query.skip(20).limit(10); Why is it wrong to write in this way? how to write correctly? ...
the circuit breaker mechanism is enabled in zuul, and it takes a long time to set it up. After the backend returns successfully, zuul enters the fallback,. Excuse me, what s going on? the contents of the appliaction.yaml file are as follows spring: ...
the time of playing other flv files will show the time, but the flv recorded by nginx-rtmp will not show the time, and the time will show 00 flv 00. What s going on? please advise ...