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, and save it to the database.
can be designed as two API, or it can be done within one API.
for example, when you delete a group, the users in the group are also deleted. It can also be designed as one or two API.
how exactly is it designed? What is suitable for each scene? Pros and cons?