VilnaCRM-Org / user-service

Creative Commons Zero v1.0 Universal
5 stars 1 forks source link

implement user registration #1

Closed Kravalg closed 2 months ago

Kravalg commented 1 year ago

As a user, I want to be able to register in the VilnaCRM.

Design

User flow

Architecture

Technical requirements

Tasks

"* - optional"

Acceptance criteria

pixelTM commented 1 year ago

@Kravalg Need add retry send confirm email, and need limit retry send email by time. First retry - 1 min, second - 3 min, 3th - 5 min. If user request 4th retry send email, user take ban on 24 hour

Kravalg commented 10 months ago

GraphQL

Endpoint - /api/graphql

Request body

mutation {
  createUser(
    input: { email: "eraaaafarg@gmail.com", initials: "Huan Karlos FIniat", password: "ad" }
  ) {
    user {
      id
      email
      initials
    }
  }
}

REST API

Endpoint - POST /api/users

Request body

{
  "email": "user@example.com",
  "initials": "string",
  "password": "string"
}

Response body

{
  "@context": "string",
  "@id": "string",
  "@type": "string",
  "id": "string",
  "email": "user@example.com",
  "initials": "string",
}
vilnacrm commented 9 months ago

@Kravalg Need add retry send confirm email, and need limit retry send email by time. First retry - 1 min, second - 3 min, 3th - 5 min. If user request 4th retry send email, user take ban on 24 hour

We don't have the design for UI where user can retry sending the email messages. But we can implement it on the backend side https://symfony.com/doc/current/messenger.html#retries-failures

Kravalg commented 9 months ago

test

Kravalg commented 3 months ago

API Service contract @pixelTM

https://github.com/VilnaCRM-Org/user-service/wiki/API-Endpoints