Skip to content
This repository was archived by the owner on Nov 8, 2025. It is now read-only.

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant