hydrus
hydrus copied to clipboard
Server is not listening to expected `PORT` and `API_NAME`
I'm submitting a
- [x] bug report.
Current Behaviour:
While exploring app.py and conf.py, I observed that even if I pass a different port
or api-name
inconf.py
it still listen to base-url & api-name
provided while making documentation using doc.writer.HydraDoc()
. It can be verified in the below image:
Api-name in the hydra_doc_sample.py (reference image attached below) is api
but in conf.py
I passed it as testapi
. When I fire a request on /api
then it gives me 200
but for /testapi
it throws 404
.
Snap of hydra_doc_sample.py
:
Snap of my conf.py
:
Expected Behaviour:
The server should listen to http://localhost:8080/testapi
rather than http://localhost:8080/api
Steps to reproduce:
- change
API_NAME
inconf.py
from toapi
totestapi
- run
app.py
and fire request onhttp://localhost:8080/testapi
Environment:
- python version - 3.8.0
- pip version - 22.0.2
- OS details
- Name - Microsoft Windows 11 Home Single Language
- Version - 10.0.22000 N/A Build 22000
Do you want to work on this issue?
Yes
Please close if fixed by merge.
Thanks, good one!