add API_HOSTAME setting to override the hostname used for OpenAPI schema
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 598
- Forks
- 168
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 86
Description
Is your feature request related to a problem? Please describe.
The OpenAPI schema provides a list of servers that currently looks like this in our deployment:
"servers": [
{
"url": "http://pulp-api-svc.pulp-stage.svc.cluster.local:24817/"
}
]
We would like to be able to set the hostname to match that of the gateway that we use to access the API.
The API_HOSTNAME should default to the hostname of the machine it is running on. The value is just the hostname. It is distinct and separate from API_ROOT.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating the OpenAPI schema generation entry point and the existing API_ROOT setting, then trace how the server hostname is selected. Done means an API_HOSTNAME setting can override that hostname, defaults to the machine hostname, and remains distinct from API_ROOT.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100