Skip to content

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