-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3977 from dseurotech/ref/passwordReset
:ref: rationalized user(s) credentials rest api endpoints
- Loading branch information
Showing
24 changed files
with
810 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
...rces/src/main/resources/openapi/userCredentials/user-credentials-credentialId-_reset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
openapi: 3.0.3 | ||
|
||
info: | ||
title: Eclipse Kapua REST API - Credential | ||
version: '1.0' | ||
contact: | ||
name: Eclipse Kapua Dev Team | ||
url: https://eclipse.org/kapua | ||
email: [email protected] | ||
license: | ||
name: Eclipse Public License 2.0 | ||
url: https://www.eclipse.org/legal/epl-2.0 | ||
paths: | ||
/user/credentials/{credentialId}/_reset: | ||
post: | ||
deprecated: true | ||
description: > | ||
This resource is deprecated and will be removed in future releases. Please make use of: | ||
POST /{scopeId}/users/{userId}/credentials/password/_reset (for admins resetting a user's password) | ||
or | ||
POST /user/credentials/password (for the user changing its own password) instead | ||
tags: | ||
- User Credentials | ||
summary: Reset the password of a Credential | ||
operationId: credentialPasswordReset | ||
parameters: | ||
- $ref: '../openapi.yaml#/components/parameters/scopeId' | ||
- $ref: '../credential/credential.yaml#/components/parameters/credentialId' | ||
requestBody: | ||
description: The new password | ||
content: | ||
application/json: | ||
schema: | ||
$ref: './user-credentials.yaml#/components/schemas/passwordResetRequest' | ||
required: true | ||
responses: | ||
204: | ||
description: The updated Credential | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../credential/credential.yaml#/components/schemas/credential' | ||
401: | ||
$ref: '../openapi.yaml#/components/responses/unauthenticated' | ||
403: | ||
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized' | ||
404: | ||
$ref: '../openapi.yaml#/components/responses/entityNotFound' | ||
500: | ||
$ref: '../openapi.yaml#/components/responses/kapuaError' | ||
/{scopeId}/user/credentials/{credentialId}/_reset: | ||
post: | ||
deprecated: true | ||
description: > | ||
This resource is deprecated and will be removed in future releases. Please make use of: | ||
POST /{scopeId}/users/{userId}/credentials/password/_reset (for admins resetting a user's password) | ||
or | ||
POST /user/credentials/password (for the user changing its own password) instead | ||
tags: | ||
- User Credentials | ||
summary: Reset the password of a Credential | ||
operationId: scopeIdCredentialPasswordReset | ||
parameters: | ||
- $ref: '../openapi.yaml#/components/parameters/scopeId' | ||
- $ref: '../credential/credential.yaml#/components/parameters/credentialId' | ||
requestBody: | ||
description: The new password | ||
content: | ||
application/json: | ||
schema: | ||
$ref: './user-credentials.yaml#/components/schemas/passwordResetRequest' | ||
required: true | ||
responses: | ||
204: | ||
description: The updated Credential | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../credential/credential.yaml#/components/schemas/credential' | ||
401: | ||
$ref: '../openapi.yaml#/components/responses/unauthenticated' | ||
403: | ||
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized' | ||
404: | ||
$ref: '../openapi.yaml#/components/responses/entityNotFound' | ||
500: | ||
$ref: '../openapi.yaml#/components/responses/kapuaError' |
66 changes: 66 additions & 0 deletions
66
rest-api/resources/src/main/resources/openapi/userCredentials/user-credentials-password.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
openapi: 3.0.3 | ||
|
||
info: | ||
title: Everyware Cloud REST API - User Credentials | ||
version: '1.0' | ||
contact: | ||
name: Eurotech | ||
url: https://www.eurotech.com | ||
|
||
paths: | ||
/{scopeId}/user/credentials/password: | ||
post: | ||
deprecated: true | ||
description: > | ||
Change logged user password | ||
This resource is deprecated and will be removed in future releases. Please make use of | ||
POST /user/credentials/password | ||
tags: | ||
- User Credentials | ||
summary: Change the current user password | ||
operationId: scopeIdUserPasswordChange | ||
parameters: | ||
- $ref: '../openapi.yaml#/components/parameters/scopeId' | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../openapi.yaml#/components/schemas/passwordChangeRequest' | ||
responses: | ||
200: | ||
description: The details of the updated Credential | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../credential/credential.yaml#/components/schemas/credential' | ||
401: | ||
$ref: '../openapi.yaml#/components/responses/unauthenticated' | ||
403: | ||
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized' | ||
500: | ||
$ref: '../openapi.yaml#/components/responses/kapuaError' | ||
/user/credentials/password: | ||
post: | ||
tags: | ||
- User Credentials | ||
summary: Change the current user password | ||
operationId: userPasswordChange | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../openapi.yaml#/components/schemas/passwordChangeRequest' | ||
responses: | ||
200: | ||
description: The details of the updated Credential | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../credential/credential.yaml#/components/schemas/credential' | ||
401: | ||
$ref: '../openapi.yaml#/components/responses/unauthenticated' | ||
403: | ||
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized' | ||
500: | ||
$ref: '../openapi.yaml#/components/responses/kapuaError' | ||
description: Change logged user password |
File renamed without changes.
Oops, something went wrong.