This is a simple REST API server that serves to supply images to my websites, it is used to store and serve files with image optimization in mind.
It is written in Go using the Gin framework.
I have used this project as a template to build off
Swagger documentation is available at /services/files/docs/index.html
.
These are generated using swag init
or go generate
, please add go generate
to your build process.
Mocking scripts can be generated using the mockery
tool. It can be installed using the following docker image:
docker pull vektra/mockery
docker run -v ${PWD}:/src -w /src vektra/mockery --all