Sign inSign up

apiprimer/hello-java

By apiprimer

Updated over 1 year ago

Hello REST API using java springboot

Image
Languages & frameworks
0

92

apiprimer/hello-java repository overview

This is a Hello API, which exposes two endpoints, GET and POST and return the response in the following structure,

{"from":"Springboot","message":"Hello, Java!","status":true}

Pull the image and run them on desired port. To test the endpoints use curl or another API testing tool.

GET

curl http://localhost:8080/
{"from":"Springboot","message":"Hello, Java!","status":true}

POST

curl http://localhost:8080/ -X POST -H 'Content-Type: application/json' --data '{"name":"YOUR_NAME"}
{"from":"Springboot","message":"Hello, YOUR_NAME!","status":true}

Tag summary

Content type

Image

Digest

sha256:90326a0ec

Size

89.3 MB

Last updated

over 1 year ago

docker pull apiprimer/hello-java