AJS Software / Services / API development Contact

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.

TopicWhat has to be decided
ResourcesWhich things the API exposes (orders, customers, documents) and which it keeps private.
AccessHow a calling program proves who it is, and what each caller is allowed to read or change.
ErrorsWhat a caller is told when a request is wrong, so problems can be diagnosed without guesswork.
VersionsHow the API can change later without breaking the programs that already depend on it.
DocumentationThe reference another developer will read. An undocumented API is only half delivered.

How an enquiry goes #

  1. Tell us who needs to talk to what. Name the system that holds the data and the programs that want it.
  2. We look at what exists. Sometimes the system already offers an interface that only needs extending or documenting.
  3. A draft specification is written. You, and anyone who will call the API, can comment before it is built.
  4. 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.