Skip to content

Server is not listening to expected PORT and API_NAME  #613

@vrutik2809

Description

@vrutik2809

I'm submitting a

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions