- HTTP methods:
- GET: requests and gets the data from database
- POST: gives the data to the database
- PUT: update the data in database
- DELETE: deletes the data in the databse
- Query parameter: http://someurl.com/path?name=shivani&products=[prod,Email,Universal%20Ads]
- Query parameters are a set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a ‘?’ Is added followed immediately by a query parameter. To add multiple parameters, an ‘&’ is added in between each. These can be created by any variation of object types or lengths such as String, Arrays and Numbers.
- URL encoding: In the above URL space(" ") is encoded as %20, as each charecter has its own encoding information URL encoding is necessary to avoid ambiguity. refer https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding for more.
- HTTP status code
- Informational responses (100 – 199)
- Successful responses (200 – 299)
- Redirection messages (300 – 399)
- Client error responses (400 – 499)
- Server error responses (500 – 599). refer https://developer.mozilla.org/en-US/docs/Web/HTTP/Status for more
- Common HTTP headers
- Request headers
- Resposnse headers
- Representation header
- Payload headers