Sign inSign up

itlab77/go-backend-api

By itlab77

•Updated about 4 years ago

Image
0

118

itlab77/go-backend-api repository overview

⁠go-backend-api

⁠Only see example:

sudo docker run --rm --name=go-backend-api -p 8888:80 itlab77/go-backend-api

http://localhost:8888/v1/questions/1⁠

⁠With your data

sudo docker run -d --rm --name=go-backend-api -p 8888:80 -v "$PWD":/data itlab77/go-backend-api
echo '{"name":"One"}' >> customers.get.json

http://localhost:8888/customers⁠

⁠Advanced usage

Examples map files to route:

  • customers.get.json - GET /customers

  • customers.post.json - POST /customers

  • customers.put.json - PUT /customers

  • customers.patch.json - PATCH /customers

  • customers.delete.json - DELETE /customers

  • v1.customers.1.get.json - GET /v1/customers/1

⁠Src

https://github.com/sergey144010/go-backend-api⁠

⁠Same php

https://github.com/sergey144010/backend-api⁠

https://hub.docker.com/r/itlab77/backend-api⁠

Tag summary

Content type

Image

Digest

sha256:dd37ed604…

Size

347.5 MB

Last updated

about 4 years ago

docker pull itlab77/go-backend-api