Wendigo is an online used car dealership in the making.
Features List | Database Schema | User Stories | Wireframes
- Purpose: This fetch is sent upon initial app load and on subsequent refreshes and navigations. It returns an object representing the current user, if user is logged in.
- Method:
POST - URL:
/api/auth/ - Successful Response: HTTP Status Code 200
{
"cart": "ARRAY_OF_PRODUCT_OBJECTS",
"createdat": "STRING",
"email": "STRING",
"id": "INT",
"updatedat": "STRING",
"username": "STRING"
}- Error Response: HTTP Status Code 401
{
"errors": "Unauthorized"
}- Purpose: This endpoint will be routed to in the case that a protected route does not pass validations for the current user.
- Method:
POST - URL:
/api/auth/unauthorized - Successful Response: NA
- Error Response: HTTP Status Code 401
{
"errors": "Unauthorized"
}- Purpose: This fetch sends the signup form data to the backend to process the creation of a new user.
- Method:
POST - URL:
/api/auth/signup - Successful Response: HTTP Status 201
{
"id": "INT",
"username": "STRING",
"email": "STRING"
}- Error Response: HTTP Status 400
{
"errors": "ARRAY_OF_STRINGS"
}- Purpose: This fetch attempts to login a user with the provided credentials.
- Method:
POST - URL:
/api/auth/login - Successful Response: HTTP Status 200
{
"id": "INT",
"username": "STRING",
"email": "STRING"
}- Error Response: HTTP Status 400
{
"errors": "ARRAY_OF_STRINGS"
}- Purpose: This fetch will logout the current user.
- Method:
POST - URL:
/api/auth/logout - Successful Response: HTTP Status 200
{
"message": "User logged Out"
}- Error Response: HTTP Status 404
{
"errors": "No session"
}- Purchase Vehicle
- Reviews
- Search
- Sell Vehicle
- Wishlist
- Filters
- Payments
- OAuth


