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...
the puzzling point is what supports the security of eloquent. For example, we can use preprocessing commands to insert some information into the database, but I don t find preprocessing statement commands in eloquent ....
I have a need here, according to the parameters returned by the background, to dynamically change the background color of the el-table table, not to change the text color, is there a solution? my current code is <el-table-column prop="da...
1. Some pictures 503 errors will occur when we visit our company s website for the first time, and the pictures will be normal after refreshing. 2. I have tried to optimize the server, but communicated with Aliyun that the main reason is the architect...
export default { props: { }, data(){ return { } }, mounted(){ console.info(this.$attrs); $attrs }, render(h){ return h( div , hello) } } ...
problems encountered in upgrading v4 the routes array does not have the function: the current menu of sub-routes or sub-routes of the menu remains expanded. For example, the user user, then user * matches of the side menu expansion....