generated from SmartOperatingBlock/kotlin-template-project
-
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.
- Loading branch information
1 parent
7430e47
commit 6183b64
Showing
1 changed file
with
61 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
openapi: 3.0.0 | ||
servers: | ||
- description: User Management Integration microservice | ||
url: http://localhost:<port>/api | ||
info: | ||
description: This is the API of the User Management Integration microservice within the Smart Operating Block project. | ||
version: "0.1.0" | ||
title: User Management Integration API | ||
contact: | ||
email: [email protected] | ||
license: | ||
name: MIT License | ||
url: 'https://opensource.org/license/mit/' | ||
|
||
tags: | ||
- name: User API | ||
description: This is the available API to manage and obtain information about users within the Operating Block. | ||
- name: Health Professional API | ||
description: This is the available API to manage and obtain information about health professionals within the Operating Block. | ||
|
||
paths: | ||
|
||
/users/{user-id}: | ||
get: | ||
tags: | ||
- User API | ||
summary: get the user information | ||
operationId: getUser | ||
description: Get user information | ||
parameters: | ||
- in: path | ||
name: user-id | ||
description: the user ID | ||
required: true | ||
schema: | ||
type: string | ||
responses: | ||
'200': | ||
description: search result | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/User' | ||
'204': | ||
description: no content about the room was found | ||
'404': | ||
description: User not found | ||
'500': | ||
description: server error occurred | ||
|
||
components: | ||
schemas: | ||
User: | ||
type: object | ||
properties: | ||
userId: | ||
type: string | ||
example: 00102698 | ||
password: | ||
type: string | ||
example: Custompwd99! |