Skip to content
José Antonio Zamudio Amaya edited this page Dec 8, 2022 · 15 revisions

The User MS is responsible for managing all connection requests to the application for the authentication of personal data of the application users. Specifically, it will process user connections to maintain a history of their data, songs and reports.

Entities

User

User MS defines an "User" entity with the following attributes:

(int) user_id
(str) username
(str) mail
(str) password

CRUD

CREATE

  • Create user

READ

  • List user info (own user)
  • List any users info (only for admin)

UPDATE

  • Update user info (own user)
  • Update any users info (only for admin)

DELETE

  • Delete user (own user)
  • Delete any user (only for admin)

Endpoints

GET /users
GET /users/:id
POST /users
PUT /users/:id
DELETE /users/:id

Integration with internal APIs

User connects directly to the messaging, songs and support APIs. The occasion in which the integration is executed is as follows:

A Report is accepted by a technician as offensive, the message is deleted and User is updated by increasing the number of deleted messages:

    (Messages) DELETE messages
    (Users) PATCH users

Integration with external APIs

User is associated with a login API, Google OAuth. This is used to authenticate users more quickly, without the need to go through a form itself and reuse the users' Google accounts.

Clone this wiki locally