🌍 Back-end Web Developement · subject
Back-end Web Developement APIs Syllabus
Every chapter and topic of APIs examined in Back-end Web Developement — 3 chapters, 8 topics, plus 51 flashcards written against it.
APIs syllabus — full chapter and topic list
Expand any chapter to see its topics and sub-topics. This is the whole examinable outline for APIs in Back-end Web Developement, not a summary of it.
-
REST
3 topics- Principles
- Best Practices
- Authentication & Authorization
-
GraphQL
3 topics- Schema Definition
- Resolvers
- Queries and Mutations
-
WebSockets
2 topics- Real-time Communication
- Socket.IO
APIs flashcards for Back-end Web Developement
22 of 51 cards from the APIs deck — real questions with worked answers.
What does API stand for, and what is its core purpose?
Application Programming Interface. It is a defined contract that lets two software systems communicate, exposing a set of operations a client can invoke while hiding the provider's internal implementation.
State the REST architectural principle of statelessness.
Each request from client to server must contain all information needed to understand and process it; the server stores no client session state between requests, so any server can handle any request.
List the core constraints of the REST architectural style.
Client-server separation, statelessness, cacheability, uniform interface, layered system, and (optionally) code-on-demand.
What is the 'uniform interface' constraint in REST, and its four sub-principles?
A consistent way of interacting with resources. Its sub-principles are: resource identification via URIs, manipulation of resources through representations, self-descriptive messages, and HATEOAS (hypermedia as the engine of application state).
In REST, what is a 'resource' versus a 'representation'?
A resource is any named information/entity the API exposes (e.g., a user). A representation is a concrete serialized form of that resource's state at a point in time (e.g., JSON or XML), transferred between client and server.
Match the primary HTTP methods to their CRUD operations.
POST = Create, GET = Read, PUT/PATCH = Update, DELETE = Delete.
What is the difference between PUT and PATCH?
PUT replaces the entire resource with the provided representation (idempotent full update). PATCH applies a partial modification, updating only the specified fields.
Define idempotency for an HTTP method and list which standard methods are idempotent.
An operation is idempotent if making the same request multiple times yields the same server state as making it once. GET, PUT, DELETE, HEAD, and OPTIONS are idempotent; POST and PATCH generally are not.
Which HTTP methods are considered 'safe', and what does safe mean?
GET, HEAD, and OPTIONS are safe. Safe means the method is read-only and does not alter server state.
What do the HTTP status code classes 2xx, 3xx, 4xx, and 5xx signify?
2xx = Success, 3xx = Redirection, 4xx = Client error, 5xx = Server error.
Give the meaning of status codes 200, 201, 204, 400, 401, 403, 404, and 500.
200 OK, 201 Created, 204 No Content, 400 Bad Request, 401 Unauthorized (not authenticated), 403 Forbidden (authenticated but not permitted), 404 Not Found, 500 Internal Server Error.
What is the difference between HTTP 401 and 403?
401 Unauthorized means the request lacks valid authentication credentials (who are you?). 403 Forbidden means the client is authenticated but lacks permission for the resource (you can't do this).
What is a REST best practice for naming resource endpoints?
Use plural nouns (not verbs) for collections, e.g. GET /users and GET /users/{id}; express hierarchy through nested paths like /users/{id}/orders, and let the HTTP method convey the action.
Why and how should a REST API implement versioning?
To evolve the API without breaking existing clients. Common strategies: URI versioning (/v1/users), custom header, or media-type/content negotiation (Accept: application/vnd.api.v1+json).
What is pagination in an API, and name two common strategies.
Splitting large result sets into smaller pages to limit payload size. Strategies: offset/limit (or page/size) pagination, and cursor-based (keyset) pagination using an opaque pointer to the last item.
What is rate limiting and why is it a best practice?
Restricting how many requests a client may make in a time window to protect the server from abuse/overload and ensure fair usage. Often signaled via headers like X-RateLimit-Remaining and status 429 Too Many Requests.
What is CORS and what problem does it solve?
Cross-Origin Resource Sharing: an HTTP-header-based mechanism letting a server declare which origins (other than its own) may access its resources, relaxing the browser's same-origin policy in a controlled way.
Distinguish authentication from authorization.
Authentication verifies identity (who you are). Authorization determines what an authenticated identity is permitted to do (which resources/actions are allowed).
What are the three parts of a JWT (JSON Web Token), separated by dots?
Header, Payload, and Signature — each Base64URL-encoded and joined as header.payload.signature.
How does a JWT's signature guarantee integrity?
The signature is computed over the encoded header and payload with a secret or private key (e.g., HMAC-SHA256 or RSA). Any tampering with header/payload invalidates the signature when the server re-verifies it, so altered tokens are rejected.
Contrast stateful (session-based) authentication with stateless (token-based) authentication.
Session-based: server stores session state and gives the client a session ID (usually in a cookie); server must look it up each request. Token-based (e.g., JWT): the token itself carries the claims and is verified by signature, so the server keeps no per-session state.
In the OAuth 2.0 framework, name the four main roles.
Resource Owner (the user), Client (the app requesting access), Authorization Server (issues tokens), and Resource Server (hosts the protected resources).
Planning APIs for Back-end Web Developement
APIs is about 12% of the Back-end Web Developement syllabus by topic count — 8 of 67 topics, spread over 3 chapters. At roughly 45 minutes per topic plus 12 minutes per sub-topic, a first pass runs to about 6 hours.
The heaviest chapters are REST (3 topics), GraphQL (3 topics), WebSockets (2 topics) . Front-load those while your energy is high; the short chapters are better revision filler later.
Work top-down: read the chapter, then tick topics off individually rather than marking the whole chapter done. Sub-topics are where silent gaps hide.
APIs (Back-end Web Developement) FAQ
What is in the Back-end Web Developement APIs syllabus?
APIs is split into 3 chapters — REST, GraphQL and WebSockets, containing 8 topics and 0 sub-topics in total.
How many chapters are there in APIs for Back-end Web Developement?
3 chapters. APIs accounts for about 12% of the topics in the whole Back-end Web Developement syllabus (8 of 67).
How long should I spend on APIs for Back-end Web Developement?
Budget around 6 hours for a first pass through APIs — about 45 minutes per topic plus 12 minutes per sub-topic across its 8 topics. Add revision cycles on top.
Are there flashcards for Back-end Web Developement APIs?
Yes — a 51-card APIs deck. Sample cards are printed on this page, and the full deck is free in the Examius app with spaced repetition scheduling.