General Updated 3 days ago

API Basics

Learn the fundamentals of APIs (Application Programming Interfaces) with this practical flashcard deck designed for beginners and aspiring developers. This deck covers core concepts such as REST APIs, HTTP methods, status codes, authentication, and real-world API usage.

12 Views
0 Likes
30 Cards

Cards in this deck

Question #1

What is an API?

Answer

An API (Application Programming Interface) allows different software applications to communicate with each other.

Question #2

What is a REST API?

Answer

A REST API is a web API that follows REST principles using HTTP methods.

Question #3

What does REST stand for?

Answer

Representational State Transfer.

Question #4

What is an endpoint in an API?

Answer

A specific URL where an API can be accessed.

Question #5

What is an HTTP request?

Answer

A message sent by a client to request data from a server.

Question #6

What is an HTTP response?

Answer

The reply sent by a server containing data or status.

Question #7

What are common HTTP methods?

Answer

GET, POST, PUT, DELETE.

Question #8

What does GET method do?

Answer

Retrieves data from the server.

Question #9

What does POST method do?

Answer

Sends data to create a new resource.

Question #10

What does PUT method do?

Answer

Updates an existing resource.

Question #11

What does DELETE method do?

Answer

Removes a resource from the server.

Question #12

What is JSON?

Answer

A lightweight format for data exchange.

Question #13

What is a status code?

Answer

A number indicating the result of an API request.

Question #14

What does status code 200 mean?

Answer

The request was successful.

Question #15

What does status code 404 mean?

Answer

Resource not found.

Question #16

What does status code 500 mean?

Answer

Internal server error.

Question #17

What is authentication in APIs?

Answer

Verifying the identity of a user or system.

Question #18

What is an API key?

Answer

A unique identifier used to authenticate requests.

Question #19

What is OAuth?

Answer

A secure authorization method for accessing APIs.

Question #20

What is rate limiting?

Answer

Restricting the number of API requests in a time period.

Question #21

What is a query parameter?

Answer

Extra data sent in a URL to filter or modify results.

Question #22

What is a request header?

Answer

Metadata sent with a request (e.g., authorization).

Question #23

What is a response body?

Answer

The actual data returned from the API.

Question #24

What is RESTful design?

Answer

Designing APIs using REST principles and standards.

Question #25

What is an API client?

Answer

A tool or application that sends requests to an API.

Question #26

What is Postman?

Answer

A tool used to test APIs.

Question #27

What is Swagger?

Answer

A tool for API documentation and testing.

Question #28

What is versioning in APIs?

Answer

Managing different versions of an API (e.g., v1, v2).

Question #29

What is CORS?

Answer

A security feature that controls cross-origin requests.

Question #30

Why are APIs important?

Answer

They enable integration and communication between systems.