REST API: the conventions that make one predictable
REST is a set of constraints, not a specification, which is why every API claiming to be RESTful is different. The conventions worth following are the ones that let a developer guess correctly.
An OpenAPI document turns your API into something tools can consume — generating clients, powering try-it consoles, and catching the drift between what the docs claim and what the API does.
An OpenAPI specification is a machine-readable description of an HTTP API: its endpoints, parameters, request and response shapes, authentication and errors, written in YAML or JSON to a published standard. It is the format formerly called Swagger, and it has become the default way APIs describe themselves.
The reason to write one is not documentation for its own sake. It is that a single accurate description drives several things at once — reference docs, client libraries, a try-it console, request validation and contract tests — and each of those otherwise drifts away from the API separately.
Two approaches with a real trade-off. Design-first writes the specification before the implementation, reviews it, then builds to it — better for APIs with external consumers, because the interface gets discussed while changing it is still cheap. Code-first generates the specification from annotations in the implementation, which guarantees the two match and tends to produce a specification shaped by the code rather than by the consumer's needs. Design-first is the better default for anything customers will build against; code-first is a reasonable choice for internal APIs where speed matters more than interface quality.
Whichever approach you pick, validate the specification in continuous integration and test the real API against it. A specification that has quietly diverged from the implementation is worse than none, because everything downstream — clients, docs, mocks — is now confidently wrong. The check costs one build step.
Ettex API is described by the conventions in rest api, with the surrounding documentation practices in api documentation and the limits in rate limiting.
One honest note: whether a published OpenAPI document exists for a given part of Ettex, and at what version, belongs in the reference rather than in an article — this piece describes the format and how to use it well, not a claim about current coverage.
A machine-readable description of an HTTP API — endpoints, parameters, schemas, authentication and errors — written in YAML or JSON to a published standard, formerly known as Swagger.
Design-first for APIs with external consumers, because the interface gets reviewed while it is cheap to change. Code-first suits internal APIs where matching the implementation matters more.
Generate reference docs, client libraries and mock servers, power a try-it console, and validate requests and responses in tests.
Validate it and test the real API against it in continuous integration. A diverged specification is worse than none, because clients and docs are then confidently wrong.
REST is a set of constraints, not a specification, which is why every API claiming to be RESTful is different. The conventions worth following are the ones that let a developer guess correctly.
Nobody reads API documentation from the top. They search for the endpoint, copy the example, and leave — which tells you exactly what to spend your effort on.
A rate limit exists to keep one caller from degrading the service for everyone. The design question is not the number — it is what happens at the boundary, and whether a client can tell.