Faithful-Resource-Pack / API

A public API for Faithful Resource Pack textures, add-ons and more
https://api.faithfulpack.net
GNU Affero General Public License v3.0
0 stars 0 forks source link

[Feature] Add endpoint to modify user keys #42

Closed 3vorp closed 3 months ago

3vorp commented 7 months ago

Is your feature request related to a problem?

Users can't have their profile transferred if they switch accounts or for some reason no longer have the same discord ID.

Describe the feature you'd like

An endpoint that goes through and updates the addon, contribution, and user collection and basically find and replaces the old id with the new id

Screenshot(s)

interface could probably be the same as the path version changer:

PUT /users/modify/{old_id}/{new_id}

Notes

No response

TheRolfFR commented 7 months ago

I would definitely use something more REST like PUT and use a more explicit endpoint name:

PUT /users/modify_id
{ "old_id": "string", "new_id": "string" }
3vorp commented 7 months ago

Fair enough, using either way probably won't make a big difference in the end — I was basing mine off the existing path version change endpoint