https://github.com/devops-ws/learn-springboot
Demo Application base on SpringBoot for API testing
https://github.com/devops-ws/learn-springboot
api-testing graphql springboot
Last synced: 2 months ago
JSON representation
Demo Application base on SpringBoot for API testing
- Host: GitHub
- URL: https://github.com/devops-ws/learn-springboot
- Owner: devops-ws
- License: mit
- Created: 2023-12-04T06:51:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-26T11:40:56.000Z (over 1 year ago)
- Last Synced: 2025-04-09T21:43:09.324Z (12 months ago)
- Topics: api-testing, graphql, springboot
- Language: Java
- Homepage:
- Size: 108 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# learn-springboot
This project aims to verify [linuxsuren/api-testing](https://github.com/LinuxSuRen/api-testing).
Run E2E testing:
```shell
make build-image run-e2e
```
Run with Maven command:
```shell
mvn spring-boot:run
```
Run in container:
```shell
docker run -p 8080:8080 ghcr.io/devops-ws/learn-springboot:master
```
Change the listen port:
```shell
java -jar demo.jar --server.port=8081
```
The default username is `admin`, and password is: `123456`.
## OpenAPI definition
You can visit it via: http://localhost:8080/v3/api-docs
or visit Swagger UI via: http://localhost:8080/swagger-ui/index.html
## GraphQL
You can visit it via: http://localhost:8080/graphiql?path=/graphql
## tRPC
The [tRPC](https://github.com/trpc-group/trpc-java) endpoint is: `http://localhost:9090`
## Metrics
You can visit the metrics endpoint: `/actuator/prometheus`