0% found this document useful (0 votes)
3 views3 pages

Java – Spring Boot - REST APIs

The document provides an overview of REST APIs, including definitions, common HTTP methods (GET, POST, PUT, DELETE), and concepts like idempotency and CRUD operations. It explains the properties of REST APIs, the role of JSON, and naming conventions for endpoints. Additionally, it highlights the advantages of REST APIs, such as scalability and a uniform interface.

Uploaded by

Gabor Komuves
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Java – Spring Boot - REST APIs

The document provides an overview of REST APIs, including definitions, common HTTP methods (GET, POST, PUT, DELETE), and concepts like idempotency and CRUD operations. It explains the properties of REST APIs, the role of JSON, and naming conventions for endpoints. Additionally, it highlights the advantages of REST APIs, such as scalability and a uniform interface.

Uploaded by

Gabor Komuves
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Java – Spring Boot - REST APIs

Flashcard 1
Q: What does REST stand for?
A: Representational State Transfer.

Flashcard 2
Q: What is a RESTful API?
A: A RESTful API is an architectural style for building web services that uses HTTP
and its capabilities, such as URLs and HTTP methods, to interact with resources.

Flashcard 3
Q: Name four common HTTP methods used in REST APIs.
A: GET, POST, PUT, DELETE.

Flashcard 4
Q: What does idempotency mean in the context of REST APIs?
A: Idempotency refers to the property of certain HTTP methods where the result of
performing the same request multiple times is the same as performing it once.

Flashcard 5
Q: Which HTTP methods are generally idempotent?
A: GET and PUT.

Flashcard 6
Q: What does CRUD stand for?
A: Create, Read, Update, Delete.

Flashcard 7
Q: What is the purpose of the GET method in REST?
A: To retrieve a resource from the server without modifying any data.

Flashcard 8
Q: What is the difference between PUT and PATCH in REST APIs?
A: PUT updates the entire resource, whereas PATCH only updates the specified fields.
Java – Spring Boot - REST APIs

Flashcard 9
Q: What are the four main properties of REST APIs?
A: Stateless, Cacheable, Client-Server, Uniform Interface.

Flashcard 10
Q: What is a stateless API?
A: A stateless API is one where each request contains all the information needed to
process it, and the server does not store any client state between requests.

Flashcard 11
Q: How does the DELETE HTTP method work?
A: It removes a resource from the server.

Flashcard 12
Q: What is JSON used for in REST APIs?
A: JSON (JavaScript Object Notation) is used for storing and exchanging data between
systems.

Flashcard 13
Q: What is an API endpoint?
A: An API endpoint is a specific URL that represents a unique resource or service on a
server.

Flashcard 14
Q: What are the typical naming conventions for defining REST API endpoints?
A: Use nouns for endpoint names, plural nouns for collections, and hyphens to separate
words.

Flashcard 15
Q: What does the POST method do in REST APIs?
A: It submits data to the server to create a new resource or modify an existing one.

Flashcard 16
Q: What is the difference between an API and an endpoint?
A: An API is a set of protocols and tools for communication between software
applications, while an endpoint is a specific URL for accessing part of an API.
Java – Spring Boot - REST APIs

Flashcard 17
Q: Why are REST APIs considered scalable?
A: Because they are stateless and can be easily distributed across multiple servers.

Flashcard 18
Q: How does the OPTIONS HTTP method work?
A: It retrieves information about the communication options available for a resource.

Flashcard 19
Q: What is the main advantage of having a uniform interface in REST APIs?
A: It simplifies the API for developers, making it easier to learn and understand.

Flashcard 20
Q: What is an example of a REST API endpoint for retrieving information about a
book?
A: GET /books/{id} retrieves information about a specific book with the given ID.

You might also like