REST API
REST, short for Representational State Transfer, is an architectural style for distributed systems. In everyday product documentation, “REST API” often describes an HTTP interface organized around resources such as affiliates, conversions, or statements. Not every interface marketed with that name follows every REST constraint. JSON is common, but it is not what makes an interface RESTful.
Read the resource and operation together
An illustrative request to GET /conversions asks for a representation of conversion records. A request to POST /affiliates may create an affiliate if that operation is defined by the service. The documentation must explain the actual behavior, required fields, authentication, and response; the path name alone is insufficient.
For a read operation, check filtering, sorting, pagination, and date semantics. A job loading the previous month must know whether the date means event occurrence, processing, or approval. It also needs to follow every page and detect incomplete results rather than treating the first response as the entire dataset.
Design for interrupted requests
Imagine a client submits a record and loses its connection before receiving the response. The server may have accepted the record even though the client saw a timeout. Before retrying a data-changing operation, follow the service’s documented duplicate-prevention mechanism or check the original result using a stable identifier.
Record request identifiers and useful error context without logging secrets or unnecessary personal data. Separate retryable failures from requests that need correction. Respect published rate limits and backoff instructions. A successful HTTP status still needs application-level validation of the returned fields and affected record.
When testing an integration, include expired credentials, missing permissions, an empty result, multiple pages, invalid input, and an interrupted request. Check version compatibility before upgrading the client or changing response parsing.
See APIs, SDKs, and sandbox environments. A familiar HTTP format helps developers begin, but dependable operation still depends on the service’s precise contract. Confirm those details against current documentation rather than assuming that the label establishes pagination, authentication, or retry behavior.
Source: MDN: REST.