forked from amundsen-io/amundsen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Create users in metadata backend via API (amundsen-io#289)
* Initial commit of rough draft. Allow creating users in metadata db via API. Signed-off-by: Grant Seward <grant@stemma.ai> * Cleaned up commented items Signed-off-by: Grant Seward <grant@stemma.ai> * Added abstract functions to fix make test Signed-off-by: Grant Seward <grant@stemma.ai> * added initial proxy test Signed-off-by: Grant Seward <grant@stemma.ai> * Added user tests, fixes for make file to pass Signed-off-by: Grant Seward <grant@stemma.ai> * Removed extra test mocks per PR feedback Signed-off-by: Grant Seward <grant@stemma.ai>
- Loading branch information
Showing
8 changed files
with
194 additions
and
2 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
metadata/metadata_service/api/swagger_doc/user/detail_put.yml
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,36 @@ | ||
Create or update a user | ||
--- | ||
tags: | ||
- 'user' | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/UserDetailFields' | ||
description: User attribute fields | ||
required: true | ||
responses: | ||
200: | ||
description: 'Existing user found and updated' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/UserDetailFields' | ||
201: | ||
description: 'New user created' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/UserDetailFields' | ||
400: | ||
description: 'Bad Request' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorResponse' | ||
500: | ||
description: 'Internal server error' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorResponse' |
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
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