$ git clone git@github.com:KevinH2810/elastic-search.git
# clone the repository to your computer
$ yarn install or npm install
# install dependencies using yarn or npm
$ yarn start or npm start
# start the app using yarn or npm
After clonning the repository, open the folder and rename .env.example
to .env
and setting the value to your desired settings
# [GET] - to Login
localhost:{port}/v1/Login/
# [POST] - to register
localhost:{port}/v1/Login/register
# [GET, POST, PUT, DELETE]
localhost:{port}/v1/Citizen/
you can register a new user in here by supplying the username and password as request query (Params).
Params - username & password
Used to login and generate the JWTtoken the token are available for 24 Hours by supplying username and password. as request query (Params).
Params - username & password
Used to add Citizen to the database. you can supply username and money, JWT token are needed in the header as Bearer Token to validate the user that's gonna input the data.
Params :
search
Get the list of all available tokens.
Params
(Body - x-www-form-urlencoded):
Name
Email
PhoneNumber
Address
City
State
Country
CompanyName
JobTitle
JobDescription
JobType
Get the list of all available tokens.
Params
(Body - x-www-form-urlencoded):
id [must](_id: of the data, can be acquired when search the data)
Name
Email
PhoneNumber
Address
City
State
Country
CompanyName
JobTitle
JobDescription
JobType
Get the list of all available tokens.
Params:
id [must](_id: of the data, can be acquired when search the data)