Autorization and Authentication REST server for yakchat
-
Create the vagrant box( could take a while )
cd vagrant vagrant up
-
ssh into the vagrant box
vagrant ssh
-
Install dependecies
cd yakchat-auth-server npm install
-
Run server
npm start
Server's URL: 192.168.86.6:8888 on linux. On windows should the same IP
Url
POST http://192.168.86.6:8888/api/v1/auth/signup/operator
Headers:
Content-Type: application/json
Accept: application/json
Body:
{
"displayname": "operator1",
"email": "op1@email.com",
"password": "12345"
}
Url
POST http://192.168.86.6:8888/api/v1/auth/signup/client
Headers:
Content-Type: application/json
Accept: application/json
Body:
{
"displayname": "operator1",
"email": "op1@email.com",
"password": "12345",
"webpage":"http://www.test.com
}
Url
POST http://192.168.86.6:8888/api/v1/auth/login
Headers:
Content-Type: application/json
Accept: application/json
Body:
{
"username": "admin",
"password": "<pass>"
}