Sign inSign up

apiprimer/hello-javascript

By apiprimer

Updated over 1 year ago

Hello REST API using javascript Nest framework

Image
Languages & frameworks
0

265

apiprimer/hello-javascript repository overview

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

{"from":"NestJS Server","message":"Hello, javascript","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":"NestJS Server","message":"Hello, javascript","status":true}

POST

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

Tag summary

Content type

Image

Digest

sha256:d6eb55338

Size

108.4 MB

Last updated

over 1 year ago

docker pull apiprimer/hello-javascript