Skip to content

Instantly share code, notes, and snippets.

@4brunu
Created November 24, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4brunu/0bb9de272f84794554bcf73db7c514bb to your computer and use it in GitHub Desktop.
Save 4brunu/0bb9de272f84794554bcf73db7c514bb to your computer and use it in GitHub Desktop.
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