- A user can get all locks related to him/herself.
- A user can add a lock
- A owner can delete a lock
- There should be an api to show the details of a lock
- Allow user add a lock if the user is admin/owner
URL : /api/v1/locks/{user_id}/{lock_id}
Method : GET
Auth required : YES
Permissions required : None
Response example
{
"id": 1,
"userId": 123,
"accessLevel": "admin",
"expiration": "2020-12-12",
"revoked": false,
"lock":{
"lockId": 1,
"lockName": "lock1",
"uid": "123",
//....
}
}-
Spring Boot
- DiscoveryApplication :8761/
- GatewayApplication :8222/
- LockApplication :8300/ /api/v1/locks
- MessageApplication :8200/ /api/v1/messages
- SchoolApplication :8070/
- UserApplication :8100/ /api/v1/users
- ConfigServerApplication :8888/
- StudentApplication :8090/
- StaticServerApplication :8400/ /api/v1/files/
- Nginx : 8500/
- MQTT : 8600/
- Logging : 8700/ /api/v1/logs/
- authentication : 8800/ /api/v1/auth/
-
API:
- UserApplication http://localhost:8100/swagger-ui/index.html
- LockApplication http://localhost:8300/swagger-ui/index.html
- StaticServerApplication http://localhost:8500/swagger-ui/index.html
- kikibana http://localhost:5601
- ElasticSearch http://localhost:9200
- Zipkin http://localhost:9411
- RabbitMQ http://localhost:15672