Note: /my/*
routes requires cognito user token
GET /users # Return list of users, for admin purpose only
GET /users/:userId/profile # For viewing other's profile
GET /my/profile
PATCH /my/profile
GET /users/:userId/pets
GET /my/pets
POST /my/pets # Add new pet
GET /users/:userId/pets/:petId
GET /my/pets/:petId
PATCH /my/pets/:petId
DELETE /my/pets/:petId
GET /users/:userId/services # Return list of services of a user provided
POST /my/services
GET /users/:userId/services/:serviceId
PATCH /my/services/:serviceId
DELETE /my/services/:serviceId
GET /my/settings
PATCH /my/settings
GET /me # Aggregation of user infos for 我的
page, may have some overlap between the above endpoints
GET /service-types # Return all available service types, for Landing Page
找服務
GET /services # Return list of services, support queries filter, for searching services in Top 10
, 台中市服務
, 離你最近的服務
GET /services/:serviceId # Return service details
implement 喜歡的行程
in local storage, no endpoint
GET /channels # Return list of chat sessions of a user
POST /channels # Create a new chat session with another user
GET /channels/:channelId # Return details of a specific chat session, including last few messages?
DELETE /channels/:channelId # Just remove the current user from the participants table
GET /channels/:channelId/messages # Return all messages in a specific chat session, use cursor based pagination, only participants are allowed to get the messages
POST /channels/:channelId/messages # Send a new message in a specific chat session, only participants are allowed to create new message
DELETE /messages/:messageId # Delete a specific message, only the sender can remove the message