Skip to content
New issue

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

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

Already on GitHub? # to your account

Added modifying meta/deleting users via API #189

Merged
merged 5 commits into from
Dec 26, 2022

Conversation

tycrek
Copy link
Owner

@tycrek tycrek commented Dec 26, 2022

Checklist

  • I have read the Contributing Guidelines
  • I acknowledge that any submitted code will be licensed under the ISC License
  • I confirm that submitted code is my own work
  • I have tested the code, and confirm that it works

Enviroment

  • Operating System: Win 10
  • Node version: 16
  • npm version: 8

Description

This will allow developers to modify a users meta key/value pairs via the API. It also introduces the ability to delete users via the API.

To delete users, call HTTP DELETE /api/user/:id. ass will return one of 200, 404, or 500.

When setting metadata, you must use HTTP PUT /api/user/meta/:id. If the key already exists, ass will return 409 Conflict.

Additionally, I added HTTP GET /api/user/all (admin-only) to get a list of all users.

In ALL API routes, :id indicates the users unid (Unique Nano ID).

I'll document the routes more in the future. See #133 for more details.

@tycrek tycrek added the enhancement New feature or request label Dec 26, 2022
@tycrek tycrek self-assigned this Dec 26, 2022
@tycrek tycrek merged commit 5c89d67 into 0.14.1/stage Dec 26, 2022
@tycrek tycrek deleted the 0.14.1/mod-del-users branch December 26, 2022 06:10
@tycrek tycrek mentioned this pull request Dec 26, 2022
4 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant