Commit Graph

4 Commits

Author SHA1 Message Date
Finn Evers 0018500a6a crates_io_client: Add endpoints for listing, adding, and removing crate owners (#66524)
Following the OpenAPI spec, this adds the crate owner endpoints to our
crates.io client.

Release Notes:

- N/A
2026-11-06 12:43:11 +00:00
Finn Evers 8a41a5cc04 crates_io_client: Add GitHub Trusted Publishing configuration endpoints (#66473)
As a next step, this PR adds the trusted publishing endpoints to the
crates.io API client.

Also slightly improves our pagination handling for crates.

Release Notes:

- N/A
2026-11-04 09:13:14 +00:00
Finn Evers 4ebf3eac14 crates_io_client: Add endpoints for listing, getting, and updating crates (#66438)
As a next step, this adds endpoints to the API client for crates.io to
query a list of crates as well as patch a crate and get crate info. Also
follows the OpenAPI spec available from crates.io.

Release Notes:

- N/A
2026-11-03 11:35:14 +00:00
Finn Evers ccb25cbc63 crates_io_client: Add crates.io API client (#66437)
Adds a `crates_io_client` tooling crate for the crates.io REST API:

- `RealCratesIoClient` authenticates with an API token and follows the
crates.io data access policy (https://crates.io/data-access).
- Errors distinguish missing permissions (401/403), missing resources
(404), and other upstream failures.
- `SimulatedCratesIoClient` (behind `test-support`) serves in-memory
responses.

For testing this, this PR also adds the `GET /api/v1/site_metadata` as a
first endpoint.

Release Notes:

- N/A
2026-11-03 11:14:40 +00:00