This API was created as backend for the project on GO-AO (GO-PC Build). Which hosts workshops on how you can successfully and professionally build your own computers and install an operating system.
/auth/login
This endpoint can be used for existing users to receive a token with their credentials.
{
"username": "string",
"password": "string"
}
TokenResponse
/auth/extern/login
Login with a third party service.
{
"value": "string (client id)",
"token": "optional[Auth token, eg for discord]"
}
TokenResponse
BaseException
/auth/register
This endpoint provides a way for new users to create an account.
{
"username": "string",
"email": "string",
"password": "string"
}
TokenResponse
/auth/revoke
This endpoint permanently deletes a token from the database.
Authorization
StatusResponse
BaseException
/user/@me
This endpoint fetches the base data from a user.
Authorization
User
BaseException
/user/connect/{platform}
Connect an account with a third party platform.
{
"value": "string"
}
Authorization
StatusResponse
BaseException
StatusResponse
{
"message": "string"
}
{
"message": "API is fully operational!"
}
TokenResponse
{
"token": "string"
}
{
"token": "GsRl67eiDZt4oskOmJqFa256okMu6aNDSHVmJRJSsEv6koS9jfn9M8aelIZM92GA.qljU4k7k"
}
User
{
"id": "string",
"nickname": "string",
"email": "string",
"avatar": "string",
"date": "string"
}
{
"id": "123example321",
"nickname": "example lord",
"email": "[email protected]",
"avatar": "http://cdn.example.com/pfp/123example321",
"date": "2020-12-28T13:18:23.986284700+00:00"
}
BaseException
{
"message": "string",
"error": "string"
}
{
"message": "Oops... You did something wrong! (See error for more information)",
"error": "No or an invalid 'Authorization' header was present on the request"
}
Authorization
Name | Value |
---|---|
Authorization | string |
Name | Value |
---|---|
Authorization | GsRl67eiDZt4oskOmJqFa256okMu6aNDSHVmJRJSsEv6koS9jfn9M8aelIZM92GA.qljU4k7k |
This application is under a CCO 1.0 License.