API Basics Flashcards

1
Q

What does API stand for

A

Application Programming Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does an API do?

A

An API allows two applications to talk to each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why do we use APIs?

A

2 reasons.

  1. They may it simple to integrate different application components, by structuring how requests are made between applications and existing architecture.
  2. They make development quicker by allowing for repeatability of structured requests and decoupling service requests from infrastructure.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a cloud-native application?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an API Gateway?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an API call?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you make an API call?

A
  1. Find the URL of the external server/program
  2. Add an HTTP verb
  3. Include a header
  4. Include and API key or access token
  5. Wait for the response.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What in an API endpoint

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a RESTful API?

A

A RESTful API utilises REST which are a set of architechtural constraints.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What makes an API a RESTful API?

A
  1. a client server architecture made up of clients, servers and resources
  2. stateless communication, meaning that no client information is stored between requests.
  3. Cachable data
  4. a uniform interface between components
  5. layered system that organizes each type of server (those responsible of security, load-balancing ect)
  6. Code-on-demand: the ability to send executable code from the server to the client when requested.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is SOAP?

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly