API Architectures

Devrim Ozcay
2 min readSep 22, 2024

Hello, i wanna tell about how API’ s are work. Actually, sometimes We are using API type’s that using for services communication. E.g My name is Devrim and i wanna send my name to client and i wanna use RESTful API that using Postman. Let’s get started!.

If you look at the picture above you will see that i am using RESTful API with POST method. This is RESTful API style. Let’s get continue….

  1. RESTful (Representational State Transfer)

REST is an architectural style that uses standard HTTP methods like GET, POST, PUT, DELETE. It follows principles such as statelessness, meaning that every request from the client to the server must contain all the information needed to understand and process the request. REST APIs often return JSON or XML data and are known for their simplicity and scalability.

RESTful API with Spring Boot

Project Description: A Bookstore API that allows CRUD operations on books.

Technologies: Spring Boot, Spring Data JPA, H2 Database.

Example:

Controller:

@RestController
@RequestMapping("/api/books")
public class BookController {…

--

--