Created
November 24, 2019 09:32
-
-
Save 4brunu/0bb9de272f84794554bcf73db7c514bb to your computer and use it in GitHub Desktop.
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
components: | |
schemas: | |
EventMotive: | |
additionalProperties: false | |
properties: | |
eventType: | |
$ref: '#/components/schemas/MotivesCategory' | |
id: | |
format: int32 | |
type: integer | |
name: | |
nullable: true | |
type: string | |
required: | |
- code | |
- eventType | |
- id | |
- name | |
type: object | |
ListMotivesResponse: | |
additionalProperties: false | |
properties: | |
message: | |
nullable: true | |
readOnly: true | |
type: string | |
model: | |
items: | |
$ref: '#/components/schemas/EventMotive' | |
nullable: true | |
readOnly: true | |
type: array | |
required: | |
- message | |
- model | |
type: object | |
MotivesCategory: | |
enum: | |
- CREATE_OPERATION | |
- LEAVE_OPERATION | |
- CANCEL_OPERATION | |
type: string | |
info: | |
title: MedicineOne API | |
version: v1 | |
openapi: 3.0.1 | |
paths: | |
/api/v1/operations.listEventMotives: | |
get: | |
parameters: | |
- description: Category of the motives | |
in: query | |
name: category | |
required: true | |
schema: | |
$ref: '#/components/schemas/MotivesCategory' | |
responses: | |
'200': | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ListMotivesResponse' | |
text/json: | |
schema: | |
$ref: '#/components/schemas/ListMotivesResponse' | |
text/plain: | |
schema: | |
$ref: '#/components/schemas/ListMotivesResponse' | |
description: Success | |
summary: List the schedule motives acceptable for a operation | |
tags: | |
- operations | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment