From e69c368b2488cbd3cbbbd94c7958bcc285188abb Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 25 Jun 2021 21:48:28 +0200 Subject: [PATCH] Added swagger --- readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/readme.md b/readme.md index 65369ce..f558332 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,13 @@ # Rest API +## Generate Swagger File + +swagger generate spec -o ./swagger.yaml + +## Setting up a Swagger Instance + +sudo docker run -p 80:8080 -e SWAGGER_JSON=/api.yaml -v ~/Documents/coding/go/rest-api/swagger.yaml:/api.yaml swaggerapi/swagger-ui + ## Setting Up a RabbitMQ Instance docker run -d --hostname my-rabbit --name some-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management \ No newline at end of file