Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: register #534

Open
timiajayi opened this issue Aug 22, 2024 · 0 comments
Open

fix: register #534

timiajayi opened this issue Aug 22, 2024 · 0 comments

Comments

@timiajayi
Copy link
Contributor

Description

user should be able to create an account on the boiler plate

requirement

  • user should be a new user
  • form validation

acceptance criteria

  • accept user details
  • store user details
  • create user account

request body

{
  "first_name": "string",
  "last_name": "string",
  "email": "[email protected]",
  "password": ",1UhBh]OZ"
}

response body

sucessful response

{
  "message": "string",
  "data": {
    "user": {
      "id": "string",
      "first_name": "string",
      "last_name": "string",
      "avatar_url": "string",
      "email": "string",
      "created_at": "2024-08-22T10:13:37.632Z",
      "is_superadmin": true
    },
    "organisations": [
      {
        "organisation_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string",
        "role": "string",
        "is_owner": true
      }
    ]
  },
  "access_token": "string",
  "status_code": 0
}

reference link

csharp docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant