A API built with Javascript and MongoDb/Mongoose. Deployed using docker CI/CD pipeline to Azure webservices. The API can be reached on: ***
- Its deployed on ***
If link isnt working we probably stopped paying for it. To get it working:
- clone the repo
- run the command: npm install
- then npm start
- Should be running on localhost:3000
- Use postman or similiar program to use the API
Example JSON post:
{
"event":{
"_id": "61b85527344f610e88aaf8fd",
"in": true,
"out": false,
"date": null,
"access": [ "61b853bd30c1c243b48e3d6c"],
"tag": {
"_id": "61b849e91bf66c50fcd987f7",
"tagNumber": "0101A",
"access" : [
{
"_id" : "61b853bd30c1c243b48e3d6c",
"doorName" : "LGH"
}],
"tenant":
{
"_id": "61b850231bf66c50fcd988a0",
"name": "Liam Jönsson",
"appartment": "0101"
}
},
"door": {
"_id": "61b853bd30c1c243b48e3d6c",
"doorName": "LGH",
"location": "Våning"
},
"__v": 0
}