unmojang/drasl

API

evan-goode opened this issue · 3 comments

Drasl should have an API other than the Web UI.

  • Each user gets a random API token that can be invalidated and re-rolled
  • Refactor front.go to share code with API routes
  • Update user's own profile
  • Admin actions: delete user, change password, lock account
  • Create invite
  • Documentation
  • Tests

i have a project in mind to use such features, ill be up to implement such features in a pull request
but what libraries would be good for the project or using the std is sufficient?

besides,
thx for the awsome project 💜

i have a project in mind to use such features, ill be up to implement such features in a pull request but what libraries would be good for the project or using the std is sufficient?

I think implementing the (likely JSON) HTTP API will require significant rewriting/refactoring, so I would rather do it myself. But it is a high priority, it's the very next thing I'm planning to do with this project.

We already use the web framework Echo; I don't think we will need to bring in any new dependencies.

Is there any specific functionality you'd like in the HTTP API? It'll definitely be able to do anything the admin web interface can do, plus registering new accounts.

besides, thx for the awsome project 💜

You're welcome! Thanks!