This section provides an overview of essential HTTP methods, request parameters, and response status codes used in AXSMarine APIs.
HTTP Methods
HTTP methods, or verbs, denote actions performed on resources. AXSMarine APIs support various HTTP methods:
GET: Retrieve a representation of a specific resource.
POST: Submit data to create a new resource or trigger a state change.
PUT: Replace all representations of a target resource with the provided payload.
DELETE: Remove a specified resource.
PATCH: Apply partial modifications to a resource.
Parameters
Parameters allow customization of API requests and responses. AXSMarine APIs support four types of parameters:
Path Parameters: Integral parts of the endpoint URL, identifying specific resources.
Query Parameters: Appended to the endpoint URL to filter or paginate results.
Request Body Parameters: Included in the request body, transmitting data to the API server.
Response Body Parameters: Represent data returned by the server in response to a request.
HTTP Status Codes
HTTP status codes communicate the outcome of client requests. AXSMarine employs HTTP status codes categorized into the following classes:
Success (200): The request was successfully processed.
400 (Bad Request): The server could not understand the request due to invalid syntax.
401 (Unauthorized): Authentication is required and has failed or has not yet been provided.
402 (Request Failed): The parameters were valid but the request failed.
403 (Forbidden): The client does not have access rights to the content.
404 (Not Found): The server can not find the requested resource.