hydrus icon indicating copy to clipboard operation
hydrus copied to clipboard

Server is not listening to expected `PORT` and `API_NAME`

Open vrutik2809 opened this issue 2 years ago • 1 comments

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: 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 : image

Snap of my conf.py : image

Expected Behaviour:

The server should listen to http://localhost:8080/testapi rather than http://localhost:8080/api

Steps to reproduce:

  • change API_NAME in conf.py from to api to testapi
  • run app.py and fire request on http://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

vrutik2809 avatar Feb 24 '22 19:02 vrutik2809

Please close if fixed by merge.

Thanks, good one!

Mec-iS avatar Feb 25 '22 10:02 Mec-iS