/duta-backend

Primary LanguageJavaScript

API routers

Router use required body Required Header
/api/user/sign-up to sign up an user
  • userName (r)
  • mobileNumber (r)
  • name (r)
  • password (r)
    none
    /api/user/sign-in to sign in an user
    • mobileNumber (r)
    • password (r)
    none
    /api/user/find to find a user userName (r) authorization (r)
    /api/chat/send to send message to someone
    • receiverId (r)
    • message (r)
    authorization (r)
    /api/chat/get-all to fetch whole inbox none authorization (r)
    /api/chat/get-user-chat to get all messages from a single user otherPersonId (r) authorization (r)