-
Notifications
You must be signed in to change notification settings - Fork 0
API
federicodallo17 edited this page Mar 5, 2025
·
1 revision
Creates a user with the given data, requirese an email and a password (8 characters, number and special character required)
{
"email": "example@neocoast.com",
"password": "Password1!"
}
If correct input
{
status: 200,
response: {
"success": "true"
}
}
If invalid password
{
status: 422,
response: {
"message": "Password must cointain at least 8 characters"
}
}
Logs in as an already created user
{
"email": "example@neocoast.com",
"password": "Password1!"
}
If correct input
{
status: 200,
response: {
"success": "true"
}
}
If incorrect email or password
{
status: 401,
response: {
"message": "Invalid email or password"
}
}
Shows every post available to the user, paginated per 25 posts.
{
"page": 1,
"per_page": 25
}
{
status: 200,
response: {
"success": "true"
}
}