1) only one operation method can be marked in each rest request (such as GET, POST),), but in fact there may be more than one operation in each request. How do you solve this problem?
for example: in the GET request, the backend actually performs logging or other modification operations, so isn"t the rest specification contaminated
2) each rest request can only request one resource, so if you want a composite resource, such as fetching all the associated data from a specified resource, won"t it also cause rest pollution?
for example:
GET / zoos/1/animal/1;
but actually want to return all the information about the zoo and the company to which animal No. 1 belongs. Is that causing pollution?
there are good restful api specifications or restful specification framework classes are also welcome to recommend!