Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cholnhial/spring-boot-rest-api-records

Demonstrating use of Java Records in Spring Boot with REST APIs
https://github.com/cholnhial/spring-boot-rest-api-records

Last synced: 8 days ago
JSON representation

Demonstrating use of Java Records in Spring Boot with REST APIs

Awesome Lists containing this project

README

        

# Spring Boot Rest API With Records Demo
In this short tutorial I cover the following:
* Using Records for DTOs
* Using Records pattern matching to deconstruct values

To run the example use:

```bash
./mvnw spring-boot:run
```

It'll be running at http://localhost:8080/, use http://localhost:8080/employees to list employees and http://localhost:8080/departments