User Service

User controller - port:8081 https://app.swaggerhub.com/apis/Afeka2020/ASIS/1.0.0

All operations that admin and user can use and data about the user in the system.

User-Controller: Update user password by id

PATCH /user/{id}/

This endpoint allows you to update the password

Path Parameters

Name
Type
Description

id

string

ID of the cake to get, for free of course.

Request Body

Name
Type
Description

password

string

{
  "email": "string",
  "id": "string",
  "name": {
    "first": "string",
    "last": "string",
    "middle": "string"
  },
  "username": "string"
}

Admin-Controller: Delete All users

DELETE /user/admin

Delete all users from the system

Path Parameters

Name
Type
Description

string

No Content

Admin-Controller: Get User

GET /user/admin/{id}

Path Parameters

Name
Type
Description

id

string

{
  "email": "string",
  "id": "string",
  "name": {
    "first": "string",
    "last": "string",
    "middle": "string"
  },
  "username": "string"
}

Admin-Controller: Update a user

PUT /user/admin/{id}

Update attributes of a user

Path Parameters

Name
Type
Description

id

string

Request Body

Name
Type
Description

userBoundary

object

Resource has edited

DELETE /user/admin/{id}

Path Parameters

Name
Type
Description

id

string

No Content

Admin-Controller: Get all users

GET user/admin/

Query Parameters

Name
Type
Description

filterValue

string

filterType

string

direction

string

page

integer

size

integer

sort

string

[
  {
    "email": "string",
    "id": "string",
    "name": {
      "first": "string",
      "last": "string",
      "middle": "string"
    },
    "username": "string"
  }
]

Admin-Controller: Signup users

POST /user/admin/signup/{role}

Signup

Path Parameters

Name
Type
Description

role

string

Request Body

Name
Type
Description

boundaries

object

[
  {
    "email": "string",
    "id": "string",
    "name": {
      "first": "string",
      "last": "string",
      "middle": "string"
    },
    "username": "string"
  }
]

Admin-Controller: Delete a user

DELETE /user/admin/{id}

Path Parameters

Name
Type
Description

id

string

Resource has deleted

Last updated

Was this helpful?