Public
Documentation Settings

Ecommerce

Welcome to the eCommerce API. With this api, you can do all sorts of things you see out there in the real world,like, handling users' signing up, logging in, resetting passwords, two-factor authentication, and really more advanced functionalites. Please note that if you actually wish to use this api in your projects, Please contact the developerand I'll direct you on how to use it in your own projects as this api is for testing purposes only. :)

Users

Auth

Folder for hadnling authentication and authorization of user's

POSTconfrim email address

{{URL}}/api/v1/users/confirmUser/

Route to confirm user's email adress. The user needs to be logged in. Email will be sent to user's email address

AUTHORIZATIONBearer Token
Token

{{JWT}}

Example Request
curl
curl --location -g --request POST '{{URL}}/api/v1/users/confirmUser/'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTLogin

{{URL}}/api/v1/users/login

Use this endpoint to log in your users

AUTHORIZATIONBearer Token
Token

{{JWT}}

Bodyraw (json)
json
{
    "email":"eloho@gmail.com",
    "password":"kennedys"
}
Example Request
curl
curl --location -g '{{URL}}/api/v1/users/login' \
--data-raw '{
    "email":"eloho@gmail.com",
    "password":"kennedys"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTSignup

{{URL}}/api/v1/users/signup

Route for signing user's

Bodyraw (json)
json
{
    "email":"eloho@gmail.com",
    "name":"eloho Kennedy",
    "password":"kennedy",
    "passwordConfirm":"kennedy",
    "phoneNumber":"8989878787"
}
Example Request
curl
curl --location -g '{{URL}}/api/v1/users/signup' \
--data-raw '{
    "email":"eloho@gmail.com",
    "name":"eloho Kennedy",
    "password":"kennedy",
    "passwordConfirm":"kennedy",
    "phoneNumber":"8989878787"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers