8000 trustpub: Change `PUT /api/v1/trusted_publishing/github_configs` endpoint to `POST` by Turbo87 · Pull Request #11390 · rust-lang/crates.io · GitHub
[go: up one dir, main page]

Skip to content

trustpub: Change PUT /api/v1/trusted_publishing/github_configs endpoint to POST #11390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

Turbo87
Copy link
Member
@Turbo87 Turbo87 commented Jun 19, 2025

PUT should be used for updates, not for resource creation. The conventional HTTP method for resource creation in REST APIs is POST.

The endpoint is currently limited to cookie authentication and not used yet by the frontend, so this change can still be made without it breaking anyone :)

Related:

…oint to `POST`

`PUT` should be used for updates, not for resource creation. The conventional HTTP method for resource creation in REST APIs is `POST`.
@Turbo87 Turbo87 added C-bug 🐞 Category: unintended, undesired behavior A-backend ⚙️ labels Jun 19, 2025
@Turbo87 Turbo87 merged commit a4b745f into rust-lang:main Jun 19, 2025
10 checks passed
@Turbo87 Turbo87 deleted the trustpub-create-method branch June 19, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0