Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriesen committed Jun 30, 2024
1 parent e52042f commit d9f5f15
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 45 deletions.
8 changes: 1 addition & 7 deletions docs/openapi/openapi-iam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4428,7 +4428,7 @@
content:
application/json:
schema:
$ref: '#/components/schemas/AddUserResponse'
$ref: '#/components/schemas/AddResponse'
security:
- ApiAuthorization: []
x-amazon-apigateway-integration:
Expand Down Expand Up @@ -9588,12 +9588,6 @@
username:
type: string
description: Username of user
AddUserResponse:
type: object
properties:
userId:
type: string
description: User Identifier
User:
type: object
properties:
Expand Down
8 changes: 1 addition & 7 deletions docs/openapi/openapi-jwt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4428,7 +4428,7 @@
content:
application/json:
schema:
$ref: '#/components/schemas/AddUserResponse'
$ref: '#/components/schemas/AddResponse'
security:
- ApiAuthorization: []
x-amazon-apigateway-integration:
Expand Down Expand Up @@ -9588,12 +9588,6 @@
username:
type: string
description: Username of user
AddUserResponse:
type: object
properties:
userId:
type: string
description: User Identifier
User:
type: object
properties:
Expand Down
8 changes: 1 addition & 7 deletions docs/openapi/openapi-key.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4428,7 +4428,7 @@
content:
application/json:
schema:
$ref: '#/components/schemas/AddUserResponse'
$ref: '#/components/schemas/AddResponse'
security:
- ApiAuthorization: []
x-amazon-apigateway-integration:
Expand Down Expand Up @@ -9588,12 +9588,6 @@
username:
type: string
description: Username of user
AddUserResponse:
type: object
properties:
userId:
type: string
description: User Identifier
User:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4456,7 +4456,7 @@ Resources:
content:
application/json:
schema:
"$ref": "#/components/schemas/AddUserResponse"
"$ref": "#/components/schemas/AddResponse"
security:
- ApiAuthorization: []
x-amazon-apigateway-integration:
Expand Down Expand Up @@ -9674,12 +9674,6 @@ Resources:
username:
type: "string"
description: "Username of user"
AddUserResponse:
type: "object"
properties:
userId:
type: "string"
description: "User Identifier"
User:
type: "object"
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4456,7 +4456,7 @@ Resources:
content:
application/json:
schema:
"$ref": "#/components/schemas/AddUserResponse"
"$ref": "#/components/schemas/AddResponse"
security:
- ApiAuthorization: []
x-amazon-apigateway-integration:
Expand Down Expand Up @@ -9674,12 +9674,6 @@ Resources:
username:
type: "string"
description: "Username of user"
AddUserResponse:
type: "object"
properties:
userId:
type: "string"
description: "User Identifier"
User:
type: "object"
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4456,7 +4456,7 @@ Resources:
content:
application/json:
schema:
"$ref": "#/components/schemas/AddUserResponse"
"$ref": "#/components/schemas/AddResponse"
security:
- ApiAuthorization: []
x-amazon-apigateway-integration:
Expand Down Expand Up @@ -9674,12 +9674,6 @@ Resources:
username:
type: "string"
description: "Username of user"
AddUserResponse:
type: "object"
properties:
userId:
type: "string"
description: "User Identifier"
User:
type: "object"
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public ApiRequestHandlerResponse get(final LambdaLogger logger,
final ApiGatewayRequestEvent event, final ApiAuthorization authorization,
final AwsServiceCache awsservice) throws Exception {

String username = event.getQueryStringParameter("username");
String username = event.getPathParameters().get("username");

CognitoIdentityProviderService service =
awsservice.getExtension(CognitoIdentityProviderService.class);
Expand Down Expand Up @@ -82,7 +82,7 @@ public ApiRequestHandlerResponse delete(final LambdaLogger logger,
CognitoIdentityProviderService service =
awsservice.getExtension(CognitoIdentityProviderService.class);

String username = event.getQueryStringParameter("username");
String username = event.getPathParameters().get("username");
service.deleteUser(username);

ApiMapResponse resp =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public ApiRequestHandlerResponse post(final LambdaLogger logger,
service.addUser(username, temporaryPassword, Boolean.FALSE);

ApiMapResponse resp =
new ApiMapResponse(Map.of("message", "user '" + username + " has been created"));
new ApiMapResponse(Map.of("message", "user '" + username + "' has been created"));
return new ApiRequestHandlerResponse(SC_CREATED, resp);
}

Expand Down

0 comments on commit d9f5f15

Please sign in to comment.