difference between rest parameters

40 Views Asked by At

I tied to design an API documentation for my rest API based on [OAS] there are only 4 parameters that can pass through in the field which indicating parameters location. but in the code I get parameters like below :

req.body

now it shouldn't have the body field? what should write instead body what is different between query, path, and the cookie ?

0

There are 0 best solutions below