Skip to content

Commit

Permalink
docs: create api documentation file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-acampora committed Feb 26, 2023
1 parent 7430e47 commit 6183b64
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions docs/openapi/openapi.yml
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!

0 comments on commit 6183b64

Please sign in to comment.