Skip to content

Commit

Permalink
Merge pull request #17 from cristovaoolegario/add-swagger
Browse files Browse the repository at this point in the history
Update swagger docs to use corrected endpoint when deployed. #patch
  • Loading branch information
cristovaoolegario authored Oct 31, 2021
2 parents e8e9fef + 63f33d9 commit a4d7b4e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cmd/aluraflix-api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
// @license.name MIT
// @license.url https://spdx.org/licenses/MIT.html

// @host localhost:3000
//cristovao-aluraflix-api.herokuapp.com
// @host cristovao-aluraflix-api.herokuapp.com
// @Schemes https http
// @BasePath /api/v1

Expand Down
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ type swaggerInfo struct {
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = swaggerInfo{
Version: "1.0",
Host: "localhost:3000",
Host: "cristovao-aluraflix-api.herokuapp.com",
BasePath: "/api/v1",
Schemes: []string{"https", "http"},
Title: "Aluraflix API",
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"version": "1.0"
},
"host": "localhost:3000",
"host": "cristovao-aluraflix-api.herokuapp.com",
"basePath": "/api/v1",
"paths": {
"/categories": {
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ definitions:
example: example error
type: string
type: object
host: localhost:3000
host: cristovao-aluraflix-api.herokuapp.com
info:
contact:
email: cristovaoolegario@gmail.com
Expand Down

0 comments on commit a4d7b4e

Please sign in to comment.