Part 2

Before build starts

API requirements and integration design — the analyst's half of the work

Duration
90 min
Level
Working
Cost
Free
Prerequisites

Part 1, or equivalent familiarity with integration styles. For the hands-on moments you need a browser and nothing else — the slides can make the calls themselves, and the demo API’s documentation page runs requests directly.

The slides will open in your browser and work with the keyboard: arrow keys to move, N for speaker notes.

What you'll be able to do

  • Question a business brief without jumping to a solution, using seven groups of questions
  • Write a functional requirement with all five parts, including what happens when a step fails
  • Turn vague quality statements into non-functional requirements with numbers in them
  • Read a live API's answers — 200, 201, 409, 401 and 429 — and say what each asks of the caller
  • Review a draft OpenAPI specification and turn what is missing into questions for its owner
  • Work out which roles to contact, consult or inform — and when

Turning a business brief into an integration specification: the questions worth asking in week one, functional requirements with their failure branches, non-functional requirements expressed as numbers, a sequence diagram, data mapping, and the roles map. A live, synthetic insurance API answers along the way, and the session ends with a review of a deliberately flawed draft of its specification.

Four hours from a damage report to a registered claim. Six claims in a hundred carrying a re-typing error. A repair shop that has to phone to find out whether anything arrived. The case is synthetic, and its shape is a common one: none of it is caused by bad code, and none of it is fixed by code alone.

The questions asked in week one tend to decide whether an integration hurts in month six. This session is about those questions, and about writing the answers down so that a team can build from them.

What you should be able to do afterwards

Take a short business brief and produce something a developer can build from and a tester can verify against — including the parts nobody wrote down, which are usually the interesting ones.

Concretely: moving from “the system must reliably send status updates” to a requirement with a number, a unit, a condition and someone who is told when it is broken.

The ground it covers

Asking before solutioning. Seven groups of questions covering the business context, the systems and their owners, data, timing and volume, failure tolerance, security, and the constraints that tend to arrive late — a partner’s test environment, credentials, rate limits. The discipline is collecting facts in business units before anyone names a technology, which is harder when you already have one in mind.

Functional requirements with their failure branch. A functional requirement has five parts, and the fifth — what happens when a step fails — is the one a draft most easily leaves out. The session reads the five parts off a real exchange with the demo API, then rewrites a weak requirement into a buildable one. For every arrow on the diagram: what happens when it fails? The fallback is a business decision, and if it is not made deliberately it gets made at 3am by whoever is on call.

Non-functional requirements as numbers. “Fast”, “reliable” and “always up” are adjectives rather than requirements. This covers response time, volume, availability, audit, a provider’s rate limit watched live until it refuses a call, and who is told when something breaks. The numbers come from the business; whether they can be met is the architect’s question.

A sequence diagram with its other branches. One scenario drawn over time, and then the branches: a dependency that does not answer, a request that arrives twice. A branch that cannot be drawn is an open question, which is the use of drawing it.

Data mapping. In my experience this is the exercise that surfaces requirements nobody asked for — values with no counterpart on the other side, and fields that would be dropped although somebody needs them.

The roles map. Twenty roles, and for each one whether you contact, consult or inform, and roughly when. A partner’s technical contact, the data protection officer and the owner of the far system are expensive to involve late, mostly because by then the decisions they care about are already fixed.

The hands-on part

This session uses a live demo API built for the series: a fully synthetic register of mandatory motor insurance policies. In the case it plays the policy system that the claims process depends on, so each call belongs to the story. A browser is enough. The slides carry a button for each call that needs no sign-in, and the API’s documentation page does the same.

The sequence is deliberate. At minute three an open operation answers 200 — the call Part 1 showed as a simulation. Later the same create request is shown twice, 201 and then 409, and you predict the second answer before you see it; that pair is a recording, because creating a policy needs a token. Then you try it yourself and meet a 401, which is worth reading properly because that is where Part 3 starts. After the break a deliberately low limit is driven to 429.

If you would rather make the signed-in calls yourself, credentials take a few seconds to get — no account, no email address.

It closes with a review exercise. A draft specification of the same API lands on your desk, deliberately flawed, with a documentation page of its own so that you can try what it says. Six things an integrator needs are missing or unclear. The job is to find them and to phrase each as a question to the API’s owner. Specifications arriving in real work are often incomplete in similar ways, and usually nobody has marked them up for you.

Where this session stops

It covers requirements practice for integrations specifically. It does not cover requirements engineering as a discipline, data modelling, or process modelling in BPMN — all adjacent, all worth their own time.

If you want to go further:

  • The OpenAPI Specification itself — spec.openapis.org is readable, and reading it once changes how you review API documentation.
  • Error responses — RFC 9457, Problem Details for HTTP APIs is short, and gives you a standard to point at rather than an opinion.
  • Event-driven interfaces — AsyncAPI is the equivalent for messaging, and the gap in most analysts’ toolkit, mine included until recently.
  • Requirements practice generally — BABOK, or the BCS business analysis material if you are in Europe. Neither is integration-specific, and both are better than this session on fundamentals.

Materials

  • Discovery questionnaire Seven groups of questions for the first conversations about an integration, with an open-questions log.
  • Requirements pack template The nine sections of a complete integration requirements pack, with two worked requirements.
  • NFR checklist Fourteen categories of non-functional requirement and the questions that turn each into a number.
  • Data mapping template A target-first field table, value-by-value code lists and a gap log.
  • Roles map Twenty roles grouped into contact, consult and inform, with the moment each typically comes in.
  • Mapping exercise About 30 minutes. Map a vehicle registry onto a claim record and find what the mapping cannot answer. A worked answer is included.
  • Demo API quick-start Credentials in one click, then the whole flow from a first call to a created policy.
  • The draft specification to review The deliberately flawed draft used in the closing exercise, on a page where its calls can be tried.

Next

Part 3, which is in preparation, goes back to that 401 and takes the security layer seriously.