Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 1.53 KB

File metadata and controls

61 lines (50 loc) · 1.53 KB
  1. A user can get all locks related to him/herself.
  2. A user can add a lock
  3. A owner can delete a lock
  4. There should be an api to show the details of a lock
  5. Allow user add a lock if the user is admin/owner

API 1: Get all locks related to a user

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",
    //....
    
  }
}

Microservices

  • 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:

  1. UserApplication http://localhost:8100/swagger-ui/index.html
  2. LockApplication http://localhost:8300/swagger-ui/index.html
  3. StaticServerApplication http://localhost:8500/swagger-ui/index.html
  4. kikibana http://localhost:5601
  5. ElasticSearch http://localhost:9200
  6. Zipkin http://localhost:9411
  7. RabbitMQ http://localhost:15672