Public
Documentation Settings

Ecommerce-api

Auth

POSTCreate Account

http://localhost:8080/api/v1/auth/sign-up
Bodyraw (json)
json
{
    "username": "dipo0x2",
    "FName": "Oladipo",
    "LName": "Adesiyan",
    "password": "ecommerce-api"
}
Example Request
curl
curl --location 'http://localhost:8080/api/v1/auth/sign-up' \
--data '{
    "username": "dipo0x",
    "FName": "Oladipo",
    "LName": "Adesiyan",
    "password": "ecommerce-api"
}'
201 Created
Example Response
json
{
  "data": {
    "id": "441729c1-cda9-4107-96a8-268eefd4b525",
    "username": "dipo0x",
    "fName": "Oladipo",
    "lName": "Adesiyan",
    "authId": "eaaead1f-2292-44a4-9597-640c519d1a9c",
    "created_at": "2024-11-17T13:55:55.050765+01:00",
    "updated_at": "2024-11-17T13:55:55.050765+01:00"
  },
  "status": 201,
  "success": true
}
Date

Sun, 17 Nov 2024 12:55:55 GMT

Content-Type

application/json

Content-Length

283

POSTLogin

http://localhost:8080/api/v1/auth/login
Bodyraw (json)
json
{
    "username": "dipo0x",
    "password": "ecommerce-api"
}
Example Request
curl
curl --location 'http://localhost:8080/api/v1/auth/login' \
--data '{
    "username": "dipo0x",
    "password": "ecommerce-api"
}'
200 OK
Example Response
json
{
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzIyNDcyNTQsInVzZXJJZCI6IjI2ZTI5ZjU1LWY3MWMtNDIzZi1iMDJhLTE0NTVjMDNiY2FhYiJ9.XWPZYyXCO5A2cdWyRda97cQ0wo1QjU3k5aPND8ilpig",
    "user": {
      "id": "26e29f55-f71c-423f-b02a-1455c03bcaab",
      "username": "dipo0x",
      "fName": "Oladipo",
      "lName": "Adesiyan",
      "authId": "b1e785a3-79c7-46a8-8c03-1cb9f9deb016",
      "created_at": "2024-11-17T17:28:36.013Z",
      "updated_at": "2024-11-17T17:28:36.013Z"
    }
  },
  "status": 200,
  "success": true
}
Date

Tue, 19 Nov 2024 03:47:34 GMT

Content-Type

application/json

Content-Length

456

Index

GETIndex

http://localhost:8080/api/v1
Example Request
curl
curl --location 'http://localhost:8080/api/v1'
200 OK
Example Response
json
{
  "data": "Backend server is up and running ",
  "status": 200,
  "success": true
}
Date

Sun, 17 Nov 2024 12:31:50 GMT

Content-Type

application/json

Content-Length

72