https://github.com/gtsopour/springbootrest
Spring Boot REST API project (spring-data-rest, spring-data-jpa, h2 database)
https://github.com/gtsopour/springbootrest
h2database spring-boot spring-data-jpa spring-data-rest
Last synced: about 1 month ago
JSON representation
Spring Boot REST API project (spring-data-rest, spring-data-jpa, h2 database)
- Host: GitHub
- URL: https://github.com/gtsopour/springbootrest
- Owner: gtsopour
- Created: 2019-04-07T07:38:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T12:20:40.000Z (about 7 years ago)
- Last Synced: 2025-03-14T14:26:22.994Z (over 1 year ago)
- Topics: h2database, spring-boot, spring-data-jpa, spring-data-rest
- Language: Java
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot REST API project (spring-data-rest, spring-data-jpa, h2 database)
Spring Boot REST API project (spring-data-rest, spring-data-jpa, h2 database)
'org.springframework.boot:spring-boot-starter-data-rest'
'org.springframework.boot:spring-boot-starter-data-jpa'
'com.h2database:h2'
Spring Security (Basic Authentication) implementation is currently a work in progress.
## CRUD Operations (Postman collection is included)
* Get all places
`GET http://localhost:8080/places`
* Get place by name
`GET http://localhost:8080/places/name/Bern`
* Get place by id
`GET http://localhost:8080/places/{id}`
* Create new place
`POST http://localhost:8080/places`
* Update a place by id
`PUT http://localhost:8080/places/{id}`
* Delete a place by id
`DELETE http://localhost:8080/places/{id}`
## Places Array (@Id @GenericGenerator(name="system-uuid", strategy = "uuid2"))
[
{
"id": "cfdafea1-5b8f-4b67-9a28-206e21ae30e1",
"name": "Zurich",
"description": "Zurich description"
},
{
"id": "9ede8e67-20e3-46a3-8ac2-6e2430f1af78",
"name": "St. Gallen",
"description": "St. Gallen description"
},
{
"id": "3ef27384-3753-46b2-b610-6e7ff2eb636b",
"name": "Bern",
"description": "Bern description"
},
{
"id": "698e574a-d129-45b6-b38a-002485b70c13",
"name": "Lucern",
"description": "Lucern description"
},
{
"id": "60b963a2-1476-4953-a282-cb24ad11815c",
"name": "Basel",
"description": "Basel description"
},
{
"id": "3dacb04f-3c36-4646-814a-fb9069bdcabf",
"name": "Geneva (Updated)",
"description": "Geneva description (Updated)"
}
]
For any extra questions, please contact me at gtsopour@gmail.com.