- Run git clone or unzip downloaded of file zip
- Copy this file from owner into ./
- .env
- docker-compose.yml
- private.key
- public.key
- redis.conf
- Run "docker-compose up"
- NOTE : Your computer must installed docker
-
Public
- Generate Token POST -> http://localhost:3000/v1/token/generator
-
Protected Use authorization type Bearer Token like bellow headers : { authorization: Bearer your_token } your_toke => JWT Token
CREATE
- POST -> http://localhost:3000/v1/user
body: { "userName" : "updateUsername", "accountNumber" : "1234", "emailAddress" : "[email protected]", "identityNumber" : "12314213123" }
READ
-
GET -> http://localhost:3000/v1/user/account/:accountNumber params :accountNumber => accountNumber field
-
GET -> http://localhost:3000/v1/user/idn/:idNumber params :idNumber => identityNumber field
UPDATE
- PATCH -> http://localhost:3000/v1/user/:id
:id => UUID
body: { "userName" : "updateUsername", "accountNumber" : "1234", "emailAddress" : "[email protected]", "identityNumber" : "12314213123" }
DELETE
- DELETE -> http://localhost:3000/v1/user/:id :id => UUID
- POST -> http://localhost:3000/v1/user