All posts in " http "
Share

Spring REST Request Body Validation

By Daniel Vladimirov / 6 months ago

@RequestBody validation is important for your REST APIs, because it protects your service layer from bad input and prevents a bad request to ever reach your business logic. User input validation in Spring is not hard to implement, because of the built-in support for JSR-303 bean validation, which makes it quite straightforward for most cases […]

Share

Handle POST and PUT requests with Spring Boot

By Daniel Vladimirov / 6 months ago

In this tutorial we’ll handle POST and PUT requests sent to our server, we’ll create and update entities and use in-memory data structures to represent our database.   POST and PUT are one of the most common HTTP methods, usually used for creating and modifying data on the target server, which is also the main […]

Share

Handling GET requests with Spring Rest

By Daniel Vladimirov / 6 months ago

In this tutorial you’ll build a simple web application, or use the tutorial in an existing project, that handles GET HTTP requests with and without path variables.   GET is one of the HTTP methods defined in the Hypertext Transfer Protocol. GET methods are used to retrieve data in a client-server based communication. The GET […]