stac-utils / stac-utils/stac-fastapi

Move link creation to fastapi dependency

Open
#402 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api layer enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.