What is the deference between the following QUERY_STRING req.body
, req.fields
, req.params
and req.body
? and When should I use each of them ?
And in Postman, there are different types of post request such as :
- Params
- Body- form-data
- Body x-www-form-urlencoded
- Body raw
- Body binary
What is the difference each of them and when they are possible to use each of them? Is there any relationship between the Postman body request and the QUERY_STRING ?
If I create API using Node Express and Front End using React, Which of the QUERY_STRING should I use in the Node Express API POST request?