Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bwhtdev/spring-rest-demo
Basic Spring Rest API deployed to Railway
https://github.com/bwhtdev/spring-rest-demo
java railway-app spring-boot
Last synced: about 1 month ago
JSON representation
Basic Spring Rest API deployed to Railway
- Host: GitHub
- URL: https://github.com/bwhtdev/spring-rest-demo
- Owner: bwhtdev
- Created: 2023-09-23T02:59:12.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-23T14:20:10.000Z (about 1 year ago)
- Last Synced: 2024-10-30T01:03:58.790Z (about 2 months ago)
- Topics: java, railway-app, spring-boot
- Language: Java
- Homepage: https://spring-rest-demo-production.up.railway.app/beers
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-rest-demo
Run `spring init --dependencies=data-jpa,h2,lombok --build=maven spring-demo`Run `./mvnw spring-boot:run`
Run `curl http://localhost:8080/beers`
Run `curl http://localhost:8080/beers/3`
Run `curl -X POST -H "Content-Type: application/json" -d '{"name": "klinskoe", "abv": 7.5}' http://localhost:8080/beers`
Run `curl -X PUT -H "Content-Type: application/json" -d '{"name": "klinskoe", "abv": 8.9}' http://localhost:8080/beers/6`
Run `curl -X DELETE http://localhost:8080/beers/6`