When an app needs to send data to a server, it can use a POST request. Unlike a lightweight GET request, a POST request commonly places key-value parameters in the request payload, or body. The request also includes a URL and may include headers such as an API key. section 5.3.1
A request combines a request line, HTTP headers, and an optional body. The server processes the message and returns an HTTP response, often containing JSON that application code can parse. section 5.3.1
Calling an API
An API may use a shared base address with an endpoint for a particular operation. A weather API could expose a forecast endpoint, while a POST request sends customizable data as a payload rather than placing every parameter in the URL. section 5.3.1
https://<base address>/<endpoint>
Use the base-address and endpoint pattern to recognize the URL targeted by an API request. section 5.3.1













