liveBook · Manning

Api standard

As explained in Automating API Delivery

An API standard is a prescribed rule or convention for designing and delivering APIs consistently and compliantly.

When several teams change the same API without shared rules, consumers can encounter different names for the same resource, inconsistent errors, missing documentation, and unsecured endpoints. An API standard gives teams a common set of design rules. It is often written as an API style guide, also called an API design guide. section 1.1 section 3.1

A style guide can prescribe conventions such as:

  • Resource names, URI paths, and pagination patterns. section 3.1
  • Error-response formats, including a message and identifier code. section 3.1
  • Authentication requirements, such as OAuth2. section 3.1

The governance choice affects delivery speed. With no centralized standard, teams can ship quickly but produce inconsistent APIs. A central team can review designs against a shared guide, but review queues and repeated feedback can delay changes. Automating checks can shorten that wait; it does not remove the need for human review of matters such as whether the resource model is understood consistently. section 1.7 section 1.1

Check a design before implementation

Complete the API design in an OpenAPI Specification definition before backend implementation. Run API linting against the definition locally, through an IDE or command line, and in the continuous integration build. A reported rule violation calls for a design change or review; a clean lint result establishes compliance only with the checks that have been automated. Keep design review and functional testing in the delivery process. section 1.1 section 1.7 section 3.1

How Automating API Delivery covers it

How deep it goes
Defines style-guide rules and compares manual with automated compliance checks, without prescribing a universal set of rules.
Examples
Uses inconsistent resource names and errors, plus sample path, authentication, and error-response rules.
What you can do after
Apply it via API linting to check a design against documented rules while retaining human review for unautomated judgments.
How it connects
Links API style guides to design-first development, OpenAPI Specification, API linting, and API governance.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Automating API Delivery. The section links point to the parts of the book it draws on.