Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 spring-boot
Last synced: 2 days 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-28T14:12:19.000Z (14 days ago)
- Last Synced: 2024-12-28T15:19:25.380Z (14 days ago)
- Topics: github-actions, gradle, java, lombok, openapi, rest, spring-boot
- Language: Java
- Homepage:
- Size: 155 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/claudioaltamura/spring-boot-superheroes-example/ci.yml?branch=main)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
# spring-boot-superheroes-example
Spring Boot Superheroes example## examples
find all
curl -i http://localhost:8080/api/v1/superheroesget one
curl -i http://localhost:8080/api/v1/superheroes/1create 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.htmlOpenAPI
http://localhost:8080/api-docs