sudo docker run --rm --name=go-backend-api -p 8888:80 itlab77/go-backend-api
http://localhost:8888/v1/questions/1
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
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
https://github.com/sergey144010/go-backend-api
Content type
Image
Digest
sha256:dd37ed604…
Size
347.5 MB
Last updated
about 4 years ago
docker pull itlab77/go-backend-api