Full Stack lecture 10 Flashcards
(11 cards)
Web API
API - Application Programming Interface
An API that can be accessed via the internet using standard web protocols, most often HTTP
REST Architecture
Representational State Transfer, an architectural style, not strict.
URI
Uniform Resource Identified, linked to Rest - Representational State Transfer.
JWT
JSON Web Token, made up of three parts header.payload.signature
OAuth 2.0
Authorization framework, widely used in APIs, without exposing credentials.
CORS
Cross Origin Resource Sharing, enforced by browsers to control how web applications can make requests to a domain other than the one that served the webpage.
Rest, Idempotency
Operations can be performed multiple times without changing the result. In the context of REST APIs it ensured consistency and fault tolerance. Post is the only one that’s not idempotant as multiple runs of the same command creates multiple users.
HATEOAS
Hypermedia as the engine if Application State, allows clients to dynamically navigate the API via hyperlinks.
Rather than hardcoding the endpoint knowledge, the client discovers next possible actions from the data itself.
OpenAPI ( Swagger)
Standard specificstion, allows you to define your API endpoints, methods, parameters, request/response structures and authentication in a machine readable YAML or JSON format.
Postman
A popular API testing and collaboration platform.
Adds authorization headers, tokens, and environmental variables.
Create and save collection of requests.