Sign inSign up

amirzadajmal/spring-boot-web-app

By amirzadajmal

•Updated over 1 year ago

Image
0

230

amirzadajmal/spring-boot-web-app repository overview

⁠Sample Spring Boot Web Application

This repository contains a sample Spring Boot web application designed for demonstration and learning purposes. It exposes the given endpoints, illustrating basic web server functionality.

⁠Endpoints

⁠GET /

Request

Response

{
    "Id": 1,
    "Name": "John Doe",
    "FatherName": "John Doe Sr."
}
⁠POST /create

Request

{
    "Id": 1,
    "Name": "John Doe",
    "FatherName": "John Doe Sr."
}

Response

{
    "message": "Student created successfully"
}
⁠GET /startup-probe, /readiness-probe, /liveness-probe

Request

Response

{
    "status": "UP"
}
⁠GET /deploy-type

Request

Response

Whatever value is set for DEPLOY_TYPE ENV variable
⁠GET /server

Request

Response

retrieves the HOSTNAME

⁠Usage

docker image pull amirzadajmal/spring-boot-web-app

docker container run -d -p 8081:8081 amirzadajmal/spring-boot-web-app

Tag summary

Content type

Image

Digest

sha256:afb193e10…

Size

306.1 MB

Last updated

over 1 year ago

docker pull amirzadajmal/spring-boot-web-app