diff --git a/docs/docs.go b/docs/docs.go index bb79550..62444de 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -71,8 +71,8 @@ const docTemplate = `{ } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/services.PrescalingEventOutput" } diff --git a/docs/swagger.json b/docs/swagger.json index c3525b3..5a54cc6 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -62,8 +62,8 @@ } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/services.PrescalingEventOutput" } @@ -323,4 +323,4 @@ } } } -} \ No newline at end of file +} diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 111da01..4d99d57 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -103,8 +103,8 @@ paths: produces: - application/json responses: - "200": - description: OK + "201": + description: Created schema: $ref: '#/definitions/services.PrescalingEventOutput' "500": diff --git a/pkg/server/server.go b/pkg/server/server.go index ee7a917..fe738b1 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -37,7 +37,7 @@ func (s *Server) Initialize() error { router := mux.NewRouter() router.PathPrefix("/swagger/").Handler(httpSwagger.Handler( - httpSwagger.URL("http://localhost:9101/swagger/doc.json"), //The url pointing to API definition + httpSwagger.URL("doc.json"), //The url pointing to API definition httpSwagger.DeepLinking(true), httpSwagger.DocExpansion("none"), httpSwagger.DomID("swagger-ui"),