Deployed at: https://studium-be.herokuapp.com/
{
"username": "string", required unique
"first_name": "string", required
"last_name": "string", required
"email": "string", required unique
"password": "string" required
}
{
"username": "user's username", required
"password": "user's password" required
}
Returns array of all decks.
Returns the specific deck object with the ID.
{
"user_id": uuid, required
"deck_name": "string", required
"category": "string",
"description": "string",
"public": boolean, false
"deck_img": "string"
}
Gets all cards within a certain deck.
{
"user_id": uuid, edit any of these fields
"deck_name": "string",
"category": "string",
"description": "string",
"public": boolean,
"deck_img": "string"
}
Returns a successful response.
Returns array of all cards, no matter the deck.
Returns a specific card, no matter the deck, based on the ID.
{
"deck_id": uuid, required
"card_front": "string", required
"card_back": "string", required
"notes": "string",
"created_at": bigint,
"updated_at": bigint,
"comfort_level": integer, 0, required
"is_starred": boolean, false
"next_due": bigint,
"card_img": "string"
}
{
"deck_id": uuid, edit any of these fields
"card_front": "string",
"card_back": "string",
"notes": "string",
"created_at": bigint,
"updated_at": bigint,
"comfort_level": integer,
"is_starred": boolean,
"next_due": bigint,
"card_img": "string"
}
Returns a successful response.
Returns an array of sessions.
Returns a specific session by ID.
{
"deck_id": uuid, required
"user_id": uuid, required
"total_looked_at": integer, 0, required
"session_start": bigint, required
"session_end": bigint
}
{
"id": uuid edit any of these fields
"deck_id": uuid,
"user_id": uuid,
"total_looked_at": integer,
"session_start": bigint,
"session_end": bigint
}
Returns a successful response.