HTTP methods
The REST API Client NetLogic exposes these HTTP methods: GET, POST, PUT.
Get
Use the GET method to request data from an API endpoint.
| Argument | Description |
|---|---|
| apiUrl | Address of an endpoint to access the API. |
| queryString | Arguments to pass to the API endpoint. |
| bearerToken | Token to authenticate the request. |
Post
Use the POST method to send data to an API endpoint and create a resource on the server.
| Argument | Description |
|---|---|
| apiUrl | Address of an endpoint to access the API. |
| requestBody | Data to send to the server behind the API endpoint. |
| bearerToken | Token to authenticate the request. |
| contentType | The original media type of the resource. |
Put
Use the PUT method to send data to an API endpoint and create or replace a resource on the server.
| Argument | Description |
|---|---|
| apiUrl | Address of an endpoint to access the API. |
| requestBody | Data to send to the server behind the API endpoint. |
| bearerToken | Token to authenticate the request. |
| contentType | The original media type of the resource. |
