Skip to content

Create a new endpoint such as /people #32

Description

@lucavenir

A new endpoint should be implemented to receive and handle people's data (person's name, surname, birth date, other registry data, etc.). It is very important to include an array of roles, so that it is possible to populate the Dashboard page and, some day, a "My Account" page.

Here's a quick list of properties that are needed for sure right now:

  • User's name and surname;
  • User's email address;
  • User's role(s) (user / therapist / system admin)

This collection should include something like:

  1. GET /people?[facility={id}&type=all], to get a list of people linked to a facility and let the client pre-filter this call by type ("patient", "admin", "doctor" or "all" by default);
  2. POST /people, to add a person to a facility (to be passed in the body)
  3. GET `/people/[id], to get a specific person

etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

backendBack End issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions