Mock Go API
An example JSON API written in Go. This is used for various examples and testing.
Run w/ Docker
Install Docker for your machine. To run the container:
$ docker run -p 8000:8000 nexmill/mock-go-api
To set the port the app listens on set the
APP_PORT environment variable. By default it will listen on port
The following endpoints are available (no data is persisted, logic is mocked).
||List all products.|
||Create new product.|
||Show product detail. ID can be 1 or 2, error response otherwise.|
||Update product. ID can be anything.|
||Delete product. ID can be anything.|