Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cholnhial/spring-boot-rest-api-records
- Owner: cholnhial
- Created: 2024-01-21T05:49:49.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-23T00:55:25.000Z (12 months ago)
- Last Synced: 2024-01-23T03:08:08.435Z (12 months ago)
- Language: Java
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 valuesTo 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