mezlet / FSI_TEST

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FSI_TEST

Table of Contents

Installation

clone the repository

create .env and paste the content of .env sample into it

run npm install

Endpoints

Register: Register a user

Request

Post api/v1/auth/signup

Body

{ "firstname": "letty", "lastname": "letty", "address": "lagos", "phone_number": "08090890989", "password": "12345678" }

Response

{
    "status": 201,
    "data": {
        "firstname": "letty",
        "lastname": "letty",
        "phone_number": "08090890989",
        "address": "lagos",
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NzUzOTc1NTIsImV4cCI6MTU3NTQwMTE1Mn0.gwIES_5pLDywrbZbD1Uv-tdfJvyqYUPl_ASgS5HEN9w"
    }
}

Validate: Validate user BVN

Request

Post api/v1/auth/bvn

Header

{ Content-Type:application/json Authorization:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjQsImlhdCI6MTU3NTQ3NDI3NiwiZXhwIjoxNTc1NDc3ODc2fQ.VyXZWK7fuYlc1a7qjED4DlcYnhIxHQXA5mWGJyYzuEw }

Body

{ "bvn": "12345678901", "dob": "23012019" }

Response

{
    "status": 200,
    "data": "BVN Matched."
}

About


Languages

Language:Vue 66.1%Language:JavaScript 30.9%Language:HTML 1.7%Language:CSS 1.4%