Sign inSign up

ashishdev1/springbootwithmysql

By ashishdev1

•Updated over 1 year ago

Springboot with mysql

Image
API management
0

270

ashishdev1/springbootwithmysql repository overview

⁠Spring Boot Docker Image – Sample User Service

A Docker image for a Spring Boot-based Sample User Service with built-in connection pooling and version tracking.


⁠📦 Image Details

  • Framework: Spring Boot
  • Base image: openjdk:17
  • Tags available: v1, v2

⁠📘 Available APIs

⁠1. GET /welcome

Returns a text response with the application version.

curl http://localhost:8080/welcome
# Output: "Welcome to version 1"
⁠2. GET /users

Fetches the list of all users.

curl http://localhost:8080/users
⁠3. POST /user

Creates a new user. Email must be unique.

curl -X POST http://localhost:8080/users \
  -H "Content-Type: application/json" \
  -d '{"name": "Ashish", "email": "[email protected]"}'
⁠4. GET /pool-status

Checks the database connection pool status.

curl http://localhost:8080/pool-status

⁠🔹 Pull the Image
docker pull ashishdev1/springbootwithmysql:v1

⁠🧑‍💻 Maintainer

Ashish Agrawal

Tag summary

Content type

Image

Digest

sha256:3eaf76618…

Size

278 MB

Last updated

over 1 year ago

docker pull ashishdev1/springbootwithmysql:v2