Run MongoDB with Admin UI using mongo express and REST API using auto API
- Install docker / compose
- Run
docker-compose up
- For auth image, the user need to login
Each API has their own users, so users have to logged specifying the API in the request:
POST /login Content-Type: application/json { "api": "example", "email": "[email protected]", "password": "pass" }
The response will contain a session token in the headers and body:
X-Email: [email protected] X-Token: 123456 { "email": "[email protected]", "token": "123456" }
To logout, users have to specify the API too:
POST /logout Content-Type: application/json X-Email: [email protected] X-Token: 123456 {"api": "example"}