Skip to content

Commit

Permalink
docs(rest.identity): added response code 400 for malformed requests i…
Browse files Browse the repository at this point in the history
…n Identity V2 [backport docs-release-5.5] (#5281)

docs(rest.identity): added response code 400 for malformed requests in Identity V2 (#5269)

* docs(rest.identity): added response code 400 for malformed request in delete methods

* docs: added 400 response code where needed

(cherry picked from commit e13bc67)

Co-authored-by: sfiorani <[email protected]>
  • Loading branch information
github-actions[bot] and sfiorani authored Jun 20, 2024
1 parent f051fa5 commit f199b84
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docs/references/rest-apis/rest-identity-api-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Unless otherwise specified, identities with `rest.identity` permissions can acce
##### Responses

- 200 OK status
- 400 Bad Request (Identity name is not valid)
- 400 Missing or mispelled field `name` (eg: `nme`)
- 409 Conflict (Identity already exists)
- 500 Internal Server Error

Expand Down Expand Up @@ -89,12 +89,13 @@ Unless otherwise specified, identities with `rest.identity` permissions can acce
```

- 200 OK status
- 400 Missing or mispelled field `name` (eg: `nme`)
- 404 Identity does not exist
- 500 Internal Server Error

#### Get User Default Configuration by Name

- Description: This method allows to get the default configuration data about an identity in the system. The request body's `identity` field is used to get only the name of specific identity. It is also possible to retrieve information about the specific user's component default configuration, specifying the type of interest.
- Description: This method allows to get the default configuration data about an identity in the system. The request body's `identity` field is used to get only the name of specific identity. It is also possible to retrieve information about the specific user's component default configuration, specifying the type of interest. This method accepts also non-existing user's name as input: in this way it's possible to retrieve which is the default configuration applied when a user is created with the `name` field only.
- Method: POST
- API PATH: `services/identity/v2/identities/default/byName`

Expand Down Expand Up @@ -148,7 +149,7 @@ Unless otherwise specified, identities with `rest.identity` permissions can acce
```

- 200 OK status
- 404 `username` does not exist
- 400 Missing or mispelled field `name` (eg: `nme`)
- 500 Internal Server Error

#### Create Permission
Expand Down Expand Up @@ -190,7 +191,7 @@ Unless otherwise specified, identities with `rest.identity` permissions can acce
##### Responses

- 200 OK status
- 400 Bad Request (Identity name not specified)
- 400 Missing or mispelled field `name` (eg: `nme`)
- 500 Internal Server Error

## GET methods
Expand Down Expand Up @@ -422,7 +423,7 @@ No specific permission is required to access this resource.
##### Responses

- 200 OK status
- 400 Bad Request (Body parameter invalid)
- 400 Missing or mispelled field `name` (eg: `nme`)
- 500 Internal Server Error

## DELETE methods
Expand All @@ -444,6 +445,7 @@ No specific permission is required to access this resource.

- 200 OK status
- 404 `username` does not exist
- 400 Missing or mispelled field `name` (eg: `nme`)
- 500 Internal Server Error

#### Delete Permission
Expand All @@ -463,4 +465,5 @@ No specific permission is required to access this resource.

- 200 OK status
- 404 `permission` does not exist
- 400 Missing or mispelled field `name` (eg: `nme`)
- 500 Internal Server Error

0 comments on commit f199b84

Please sign in to comment.