abuelo/README.md
Tristan Poland (Trident_For_U) 671f056d26 Multi Handle Support
2025-04-05 16:41:16 -04:00

3.5 KiB

ABUELO

Abuelo is an open source profile service meant to organize development around AbleOS and related projects. The rest of this document is documentation for the API

GET /user/:username

Return information about a particular user in the following format:

{
    "success" : Boolean,
    "message" : String,
    "creation_time" : String,
    "premium" : Boolean,
}
  • success: if the user is found successfully then the value returned is true
  • message: if success is false, contains an error message to give to the user
  • creation_time: if success is true, contains the creation date of the account in the format YYYY-MM-DD HH:MM
  • premium: if success is true, contains whether or not the account is premium

POST /user/create

Adds a user to the database Request Format:

{
    "username" : String,
    "password" : String,
}
  • username: The username of the newly created user
  • password: The (plain-text currently but in future RSA encrypted) password of the newly created user

Response Format:

{
    "success" : Boolean,
    "message" : String,
}
  • success: if the user is created successfully then the value returned is true
  • message: if success is false, contains an error message to give to the user

POST /user/auth

Authorizes the user Request Format:

{
    "username" : String,
    "password" : String,
}
  • username: The username of the user
  • password: The (plain-text currently but in future RSA encrypted) password of the user

Response Format:

{
    "success" : Boolean,
    "message" : String,
    "handle": Number?
}
  • success: if the user is authed successfully then the value returned is true
  • message: if success is false, contains an error message to give to the user
  • handle: if success is true, contains a handle number for the user

GET /user/:username/handles

Return all handles for a user Response Format:

{
    "success" : Boolean,
    "message" : String,
    "handles" : [Number]?
}
  • success: if the handles are found successfully then the value returned is true
  • message: if success is false, contains an error message to give to the user
  • handles: if success is true, contains an array of handle numbers belonging to the user

POST /user/handle/create

Creates a new handle for a user Request Format:

{
    "username" : String,
    "password" : String,
}
  • username: The username of the user
  • password: The (plain-text currently but in future RSA encrypted) password of the user

Response Format:

{
    "success" : Boolean,
    "message" : String,
    "handle" : Number?
}
  • success: if the handle is created successfully then the value returned is true
  • message: if success is false, contains an error message to give to the user
  • handle: if success is true, contains the newly created handle number

POST /user/handle/delete

Deletes a handle from a user Request Format:

{
    "username" : String,
    "password" : String,
    "handle" : Number
}
  • username: The username of the user
  • password: The (plain-text currently but in future RSA encrypted) password of the user
  • handle: The handle number to delete

Response Format:

{
    "success" : Boolean,
    "message" : String,
    "handle" : Number?
}
  • success: if the handle is deleted successfully then the value returned is true
  • message: if success is false, contains an error message to give to the user
  • handle: if success is true, contains the deleted handle number