-
Notifications
You must be signed in to change notification settings - Fork 11
Routes and APIs
Song Zheng edited this page Mar 23, 2020
·
7 revisions
APIs you need
Sign up user
base64 encoded JSON string
{
username: 'username',
password: 'password',
email: '[email protected]'
}
{
status: 'success'
}
{
error: {
message: 'failed to sign up'
}
}
Used to log user in.
base64 encoded JSON string
{
username: 'username',
password: 'password'
}
{
status: 'success'
}
{
error: {
message: 'Failed to login'
}
}
base64 encoded JSON string
{
email: 'email',
username: 'username',
password: 'password'
}
{
status: 'success'
}
{
error: {
message: 'Username is too short'
}
}
Logout user
{
status: 'success'
}
{
error: {
message: 'failed to logout'
}
}
Create a database for the currently logged in user
base64 encoded JSON string
{
name: 'postgres'
}
{
status: 'success'
}
{
error: {
message: 'failed to create database'
}
}
Get all databases for the currently logged in user.
{
data: [{postgres: {...}}, {mongoDB: {...}}]
}
{
error: {
message: 'failed to get databases'
}
}
.
base64 encoded JSON string
{
password: 'c0d3r'
}
{
status: 'success'
}
{
error: {
message: 'database setup failed'
}
}
Resend if email has expired or not been sent
base64 encoded JSON string
{
email: '[email protected]'
}
{
status: 'success'
}
{
error: {
message: 'email was not sent'
}
}