Skip to content

Implement log in page #58

Description

@Dakad

CRUD on User

It's a new feature to allow CRUD on User. User is someone using the application.

Model

Users
Id (PK)
name (String) Not Null
email (String) Not Null Unique
password(String) Not null
role[admin,visitor]=visitor
  • Users 1 -->1,n Entities
  • Users 1 -->1,n Providers
  • 1 User has 1 or Many Entity
  • 1 User has Many Providers

Services

We'll create a Controller class that provides the following functionality:

  • get: retrieve user
    Parameters :
    Return: If parameter is null, return all users otherwise those requested
    Error:

  • post: create a new user
    Parameters :
    Return: All properties but id of the user stored in DB.
    Error :

  • put: modify a specific user
    Parameters: Not null
    Return: All properties but id of the user stored in DB.
    Error :

  • delete: delete a specific user
    Parameters: Not null
    Return: All properties but id of the userstored in DB.
    Error :

    • If the specified user doesn't exist

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions