Skip to content

Commit

Permalink
refactor: keep production url in swagger config
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeshubham committed Oct 2, 2024
1 parent bfa8989 commit a6a1017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,5 @@ Click [here](https://github.com/hiteshchoudhary/apihub/blob/main/CONTRIBUTING_CO
# 📜 Swagger Docs

[Swagger Docs](https://api.freeapi.app): https://api.freeapi.app

NOTE: Swagger docs are auto generated from the `swagger.yaml` file. While running the project locally, make sure you change the url to `http://localhost:<port_from_.env>/api/v1` in the swagger docs `servers/url` field.
2 changes: 1 addition & 1 deletion src/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ info:
version: 1.3.1
contact: {}
servers:
- url: ${{server}}
- url: https://api.freeapi.app/api/v1 # add `http://localhost:<port_from_.env>/api/v1` in case of local testing
paths:
/public/randomusers:
get:
Expand Down

0 comments on commit a6a1017

Please sign in to comment.