Simple Express JS application with basic routes for farther automation.
npm install
npm start
localhost:3333
docker run -d -p 8081:3333 akramqa/express
localhost:8081
- Get all users:
GET /users
- Get current user:
GET /users/:id
- Create user:
POST /users
{
"username":"Akram P",
"role":"admin",
"email":"akramp@notexistingemaildoma.in"
}
- Edit user:
PUT /users
{
"_id":4,
"username":"Akram P",
"role":"admin",
"email":"akramp@notexistingemaildoma.in"
}
- Delete user:
DELETE /users/:id