FORWARD-DEPLOYED ENGINEERING 101 · FREE, NO MODEL KEY
Understand it.
Then build it.
You can be an experienced engineer and still be new to agents. Start with what each thing is and how it helps a person do useful work. Explore 64 original introductions across software, agents, cloud, security and delivery. Start here without a model key; each topic connects to deeper instruction and practice.
A place to start.
Choose a short reading route, or look up a concept below.
- 101UnderstandPlain language, visual walkthrough, vocabulary
- 102Build with guidanceOriginal lessons, examples and knowledge checks
- 103Practise and explainRunnable labs, failure cases and handover
An architectural style
What is a RESTful API?
REST means Representational State Transfer. It is a style for designing networked systems around resources and a uniform interface. In common HTTP APIs, URLs identify resources and methods such as GET and POST describe operations. Returning JSON alone does not make an API RESTful.
You need predictable interfaces before letting agents call enterprise services.
UNDERSTAND THE SYSTEM
One resource, different operations
REST is an architectural style; HTTP carries the exchange. An ETag labels a representation version. If-Match asks the service to change it only if that version still matches. Follow fictional tickets through the local lab cases; this diagram explains the exchanges, rather than running a server in your browser.
Read the connections in plain English
- 01Calling application → HTTP request
Select the operation and the exact representation the caller intends to send.
- 02HTTP request → Service checks
The local client sends actual HTTP to the service.
- 03Service checks → Resource state
Only accepted operations alter the ticket. Rejected writes preserve the existing state.
- 04Resource state → HTTP response
The service reports the result of the read, mutation or refusal.
- 05HTTP response → Client decision
The client compares the response to its intended work and the documented contract.
- 06Client decision → Calling application
Before another edit, inspect the current representation and reconcile the intended change.
Check your understanding: Does fetching a fresh ETag automatically make an old edit correct?
No. The tag guards a version comparison. The caller must inspect the current content and reconcile the intended change. In the lab's second edit, refreshing only the tag lets an old body overwrite the other editor's title.
CONNECT IT TO WHAT YOU KNOW
Start with something familiar.
Imagine a shared catalog: a stable address identifies each ticket, while agreed operations tell clients how to read or create one.
REST is a design style; HTTP is a communication protocol; JSON is a data format; FastAPI is one framework you can use to implement an HTTP API.
Words worth knowing
- Resource
- The thing identified and manipulated through the interface.
- Representation
- The data returned about a resource.
- Stateless request
- A request carries the information needed to understand it; servers can still store resource state.
Useful foundations
Open a definition and diagram here. Your lesson stays in place.
A software contractWhat is an API?
QUICK REFERENCE / 101
What is an API?
An application programming interface (API) is an agreed way for one piece of software to use another. It specifies operations, inputs, outputs and errors. Some APIs are local functions; a web API exchanges requests and responses across a network.
An agent becomes useful through connections to business systems. Those connections need clear contracts and failure behavior.
ONE EXAMPLE / FICTIONAL CASE
Follow the connections.
Read ticket T-104 with GET /tickets/T-104. Creating a ticket uses a different operation and requires write permission.
UNDERSTAND THE SYSTEM
One resource, different operations
REST is an architectural style; HTTP carries the exchange. An ETag labels a representation version. If-Match asks the service to change it only if that version still matches. Follow fictional tickets through the local lab cases; this diagram explains the exchanges, rather than running a server in your browser.
Read without changing
Read the full worked example
- 01Read without changing
Two GETs return the same representation and version. Reading the ticket requests no business mutation. A server may still record access logs.
READ: 200, 200 · still one open ticket
- 02Create twice
Two identical POSTs create T-105 and T-106 in this contract. Inspect each Location header. The same body is not a deduplication key.
CREATE-REPEAT: 201, 201 · two new resources
- 03Repeat a conditional replacement
A GET returns v1. The first PUT uses that tag and replaces the ticket with queued at v2. The identical second PUT still carries v1, so it gets 412. The intended resource effect remains one replacement.
REPLACE-REPEAT: 200, 200, 412 · queued at v2
- 04Reject the older edit
Editor B changes the title and status after A reads v1. A's old full representation is rejected. A fresh GET shows B's reviewed scope still present; do not blindly attach the new tag to the old body.
STALE-EDIT: 200, 200, 412, 200 · B's edit preserved
- 05Delete, then repeat
The first DELETE removes T-104 and returns 204 with no body. The second returns 404. The resource stays absent: idempotent does not mean identical response codes.
DELETE-REPEAT: 204, 404 · resource remains absent
- 06Require the version
This service requires If-Match for a full replacement. Without it, PUT returns 428 and leaves the ticket unchanged. The rule must be enforced by the API; a client cannot assume every API has it.
MISSING-PRECONDITION: 428 · unchanged open ticket at v1
- 07Send the whole representation
PUT here requires both writable fields. A body with status alone gets 400, even with the current tag. A partial update needs its own explicitly defined operation.
PARTIAL-REPLACEMENT: 200, 400 · no resource change
Read the connections in plain English
- 01Calling application → HTTP request
Select the operation and the exact representation the caller intends to send.
- 02HTTP request → Service checks
The local client sends actual HTTP to the service.
- 03Service checks → Resource state
Only accepted operations alter the ticket. Rejected writes preserve the existing state.
- 04Resource state → HTTP response
The service reports the result of the read, mutation or refusal.
- 05HTTP response → Client decision
The client compares the response to its intended work and the documented contract.
- 06Client decision → Calling application
Before another edit, inspect the current representation and reconcile the intended change.
Check your understanding: Does fetching a fresh ETag automatically make an old edit correct?
No. The tag guards a version comparison. The caller must inspect the current content and reconcile the intended change. In the lab's second edit, refreshing only the tag lets an old body overwrite the other editor's title.
Work through it, step by step.
Identify the resource
Choose a stable resource identifier rather than a vague action string.
What you have now: /tickets/T-104
Use method semantics
GET reads a representation and should not trigger a business write. POST commonly submits a creation request.
What you have now: Read and write have different contracts
Handle the result
Interpret status codes and response fields. Repeating a timed-out write needs a defined duplicate-prevention contract.
What you have now: Explicit success and failure handling
REST API 101 · REQUESTS HAVE CONSEQUENCES
What actually changes?
A ticket is the resource. Its title and status are a representation. Inspect the state, predict the effect, then reveal a recorded HTTP exchange from our Python lab.
Start with a shared service ticket. GET asks for its representation: the fields the service exposes, plus a version label called an ETag. It does not ask to change the ticket.
Request 1: Read the ticket
/tickets/T-104No selected headers in this recording.
No request body.
STATE BEFORE THIS REQUEST
- Pump check
T-104Before this requestopen"T-104-v1"
Original recordings from temporary loopback HTTP with fictional tickets. These controls replay observations; they do not make network requests or change a real ticket. The lab has no identity, persistence or model. Reproduce and change the code in the free lab →
FROM RECOGNITION TO REASONING
Explain the change, not just the status code.
- 01
Use the recordings above to predict the effect of each GET, POST, PUT and DELETE before revealing its result.
- 02
Compare the two DELETE results, then the older edit with and without a refreshed tag. Identify what is preserved or lost.
- 03
Reproduce the seven cases in the free Python lab. Change the creation count and version-refresh behavior separately, then repair the flawed client sequence.
Predictions compared with resource states, your local traces, two controlled edits and a read/change tool contract.
Compare your reasoning when you are ready
Idempotency concerns the intended effect, not identical response codes. A current version tag does not establish that the caller reviewed the current content. Reconcile the content and keep authorization outside model-generated arguments.
Keep notes in your own working copy. Moving through these cards does not record completion.
TURN THE IDEA INTO USEFUL WORK
You can now go deeper.
REST is a design style; HTTP is a communication protocol; JSON is a data format; FastAPI is one framework you can use to implement an HTTP API.
Academy lessons use your existing training access. Free guides stay open.