https://github.com/claudioaltamura/spring-boot-superheroes-example
Spring Boot Superheroes example
https://github.com/claudioaltamura/spring-boot-superheroes-example
github-actions gradle java lombok openapi rest rest-assured spring-boot
Last synced: about 1 year ago
JSON representation
Spring Boot Superheroes example
- Host: GitHub
- URL: https://github.com/claudioaltamura/spring-boot-superheroes-example
- Owner: claudioaltamura
- License: mit
- Created: 2021-03-09T09:14:34.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-02T15:55:10.000Z (about 1 year ago)
- Last Synced: 2025-01-09T08:29:24.128Z (about 1 year ago)
- Topics: github-actions, gradle, java, lombok, openapi, rest, rest-assured, spring-boot
- Language: Java
- Homepage:
- Size: 162 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://opensource.org/licenses/MIT)
# spring-boot-superheroes-example
Spring Boot Superheroes example
## examples
find all
curl -i http://localhost:8080/api/v1/superheroes
get one
curl -i http://localhost:8080/api/v1/superheroes/1
create one
curl -X 'POST' \
'http://localhost:8080/api/v1/superheroes' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"id": 3,
"name": "SuperheroA",
"realName": "A superhero",
"power": 100
}'
## generate OpenAPI
./gradlew generateOpenApiDocs
## links
h2-console
http://localhost:8080/h2-console
Healthcheck
http://localhost:8080/actuator/health
Swagger-UI
http://localhost:8080/swagger-ui.html
OpenAPI
http://localhost:8080/api-docs