API Design

Conciseness: When designing an API, you should minimize the set of methods, requests, objects, and resources exposed by the API. Unnecessary complexity makes the API difficult to understand and maintain. Consistency: The object hierarchy and queries should be logically related and intuitive to API users. The names of objects and methods should correspond to their purpose. Names for the same objects and parameters must be consistent across all API methods. ...

2023-01-04 · 1 min · 104 words · Andrey

Versioning

Accurate versioning is crucial for: Ensuring compatibility and traceability of new features in the application and API. Documenting functionality with reference to the specific version in which capabilities appeared. Designating the current status of software product readiness (pre-release, alpha, beta). Planning new functionality (roadmap). Version Number A version typically consists of several numbers separated by dots. The most common format is X.Y.Z (Major.Minor.Patch). Rules: Major: Incremented for incompatible API changes. Minor: Incremented for adding functionality in a backward-compatible manner. Patch: Incremented for backward-compatible bug fixes. Semantic Versioning It is recommended to follow the rules of Semantic Versioning (SemVer) when numbering versions. ...

2022-09-18 · 2 min · 223 words · Andrey