API Basics Flashcards
What does API stand for
Application Programming Interface
What does an API do?
An API allows two applications to talk to each other.
Why do we use APIs?
2 reasons.
- They may it simple to integrate different application components, by structuring how requests are made between applications and existing architecture.
- They make development quicker by allowing for repeatability of structured requests and decoupling service requests from infrastructure.
What is a cloud-native application?
They are a collection of small, independent, and loosely coupled services that deliver business value. These application can be hosted on public, private or hybrid clouds.
What is an API Gateway?
It is an API management tool that sits between the client and the collection of backend services. It acts a a reverse proxy to accept all API calls.
What is an API call?
It is the process of a client application submitting a request to an API and that API retrieving the requested data from the external server or program and delivering back to the client.
How do you make an API call?
- Find the URL of the external server/program
- Add an HTTP verb
- Include a header
- Include and API key or access token
- Wait for the response.
What in an API endpoint
The endpoint is the end of the communication channel. When a request is made of an API it will send the outputs to the endpoint it is normally the URL of the server or service.
What is a RESTful API?
A RESTful API utilises REST which are a set of architechtural constraints.
What makes an API a RESTful API?
- a client server architecture made up of clients, servers and resources
- stateless communication, meaning that no client information is stored between requests.
- Cachable data
- a uniform interface between components
- layered system that organizes each type of server (those responsible of security, load-balancing ect)
- Code-on-demand: the ability to send executable code from the server to the client when requested.
What is SOAP?
SOAP stands for Simple Object Access Protocol. It is a messaging protocol specification for exchanging structured information in the implementation of web services.
(the protocol in verbose, and XML parsing speeds are slow so it has been superseded by REST)