Skip to content

Smart-Pot/User-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comment Struct

User{
    "id": string,
    "email": string,
    "password": string,
    "firstName":string,
    "lastName":string,
    "image":string,
}

UserPublicData{
    "id":string,
    "email":string,
    "firstName":string,
    "lastName":string,
    "image":string,
}

GetUsersPublic

  • path: /user/public
  • method: GET
  • returns:
    {
        "users": UserPublicData[],
        "success": Number,
        "message" : String
    }

Get

  • path : /user/single/{id}
  • method: GET
  • returns:
    {
        "user": User,
        "success": Number,
        "message" : String
    }

Create

  • path: /user/create

  • method: POST

  • params:

    • Header:

      Name Description Type
      x-auth-token authentication token of the user String
    {
        "email": string,
        "password": string,
        "firstName":string,
        "lastName":string,
    }
  • returns:

    {
        "user": NULL,
        "success": Number,
        "message" : String
    }

Update

  • path: /user/update
  • method: PUT
  • params:
    • Header:

      Name Description Type
      x-auth-token authentication token of the user String
    {
        "id": string,
        "email": string,
        "password": string,
        "firstName":string,
        "lastName":string,
        "image":string,
    }
  • returns:
    {
        "user": NULL,
        "success": Number,
        "message" : String
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •