A request is an action we send to interact with a web service, whether you are authenticating or interacting with the resource server. Working with requests is required if Iguana is acting as either the:
Client - building requests to be sent to the Server.
Server - listening for incoming requests and parsing them for processing.
HTTP requests are made up of four parts. Take this example FHIR API request:
screenshot
The method indicates the action to be performed on a resource within the API. With Iguana’s
|
The URL defines where the client can access the desired resources - for example the Patient resource. For GET requests, the URL may also contain any necessary query parameters like the |
The header includes metadata requirements defined by the API to provide information about the request. This can contain information such as:
|
Some requests (PUT and POST) require a body where we add the resource content or additional information to be sent to the server. This can be in a few potential formats: JSON
XML
Query String format
|