stac-utils / stac-utils/stac-fastapi
Move link creation to fastapi dependency
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 324
- Forks
- 126
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 10
Description
Right now there is a starlette request object that is injected into each endpoint and the user is responsible for creating links. The starlette request object is available from within a fastapi dependency, so it may be easier to create links inside a dependency and inject these links into each endpoint.
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
Start by tracing the Starlette request object injected into each endpoint and the existing user-controlled link creation flow. Review how FastAPI dependencies can access the request, then define the dependency and endpoint injection boundaries; done means endpoints receive links without requiring users to create them themselves.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fastapi, python
- Domain
- api, backend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100