AJS Software / Services / API development
API development
An API is the part of a system that other programs use instead of people. It is a contract: ask in this form, and the answer comes back in that form, every time.
Why you might need one #
- A mobile app or a second website needs the same data as your main system.
- A supplier, customer or partner organisation wants to exchange records with you automatically.
- Two internal tools hold overlapping information and keep drifting apart.
- You want reports or automation to read live data without touching the database directly.
What a request looks like #
For readers who have not met one before, here is the general shape of a request and its answer.
request and responseillustrative only
# a program asks for one record ... GET /orders/1042 # ... and receives structured data back { "id": 1042, "status": "dispatched", "lines": 3 }
Note
The example above is made up to show the idea. It does not describe a real service of ours or anyone else's.
Decisions made before any code #
Most of the value in API work lies in the design. These are the points we settle with you on paper first.
| Topic | What has to be decided |
|---|---|
| Resources | Which things the API exposes (orders, customers, documents) and which it keeps private. |
| Access | How a calling program proves who it is, and what each caller is allowed to read or change. |
| Errors | What a caller is told when a request is wrong, so problems can be diagnosed without guesswork. |
| Versions | How the API can change later without breaking the programs that already depend on it. |
| Documentation | The reference another developer will read. An undocumented API is only half delivered. |
How an enquiry goes #
- Tell us who needs to talk to what. Name the system that holds the data and the programs that want it.
- We look at what exists. Sometimes the system already offers an interface that only needs extending or documenting.
- A draft specification is written. You, and anyone who will call the API, can comment before it is built.
- Scope and terms are confirmed in writing, and only then does implementation begin.
What to have ready #
- The name and purpose of the system behind the API.
- Who will consume it: your own developers, another company, or both.
- Examples of the records involved, with personal details removed.
- Any deadline that is imposed from outside.
Please do not send
Passwords, access keys or real customer data by email. If we need access to something, we will agree a safe way to arrange it.