Stalked API Documentation

It's my first time writing a documentation intended for a public API use, so don't expect much.
All API is intended for the client to use, so there are no API keys for now since you probably should let the client connect and not a third party.

/account

Handles the login and register of accounts.

Accepts only Post requests with the following parameters:

  • "type" - can be either "login" or "register"
  • "email" - can be any string that is an email
  • "username" - can be any string that meets the username requirements
  • "password" - can be any string that meets the password requirements
  • The response will be a JSON with a single key "status" and the status of the action. If all is good it's 201.