Learning REST APIs Flashcards
Learn the basics of REST APIs. Discover what they are, why they matter, and how putting REST APIs to use can help you build faster, more efficient applications.
What does REST stand for
Representational State Transfer
What does API stand for
Application Programing Interface
What is REST?
Representational State Transfer refers to a group of software architecture design constraints that bring about efficient, reliable, and scalable systems
A representational state is transferred as a ____ which means the website doesn’t have to reload the whole page
Data Object (As opposed to having to load the new pages whole set of HTML Code)
What is an API
A set of features and rules that exist inside a software program enabling interaction between the software and other items, such as other software or hardware
what is the collection of tools used to access and work with REST resources?
API (Application Programming Interface)
What does URI stand for?
Universal Resource Identifier
What is a URI?
“A compact sequence of characters that identifies an abstract or physical resource” that “provides a simple and extensible means for identifying a resource”
What is the most generic way to name and locate a web resource?
URI?
What does URL Stand for?
Subset of the URI that identifies a resource and explains how to access that resource (https:// or ftp://)
What does URN stand for?
Universal Resource Name
What is a URN? How is that different from a URL?
Its the unique name of a URI. The URL includes the location which is not part of the URN.
What are the Six Constraints of REST
- Client - server architecture
- Statelessness
- Cacheability
- Layered system
- Code on demand
- Uniform interface
REST Constraint: Client - server architecture
This constraint ensures proper separation of concerns. The client manages user interface concerns while the server manages data storage concerns
REST Constraint: Statelessness
No client context or information, aka “state”, can be stored on the server between requests.