Created
July 2, 2018 07:28
-
-
Save codessentials/7122ab4a8e37a8621f9c4546d9d382a4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
openapi: 3.0.0 | |
info: | |
title: Sample | |
version: 1.0.0 | |
paths: | |
/employees: | |
get: | |
operationId: getEmployees | |
responses: | |
'200': | |
description: response 200 | |
content: | |
application/json: | |
schema: | |
properties: | |
code: | |
type: number | |
meta: | |
$ref: '#/components/schemas/ListMeta' | |
values: | |
$ref: '#/components/schemas/Employees' | |
components: | |
schemas: | |
Lawyer: | |
properties: | |
idLawyer: | |
type: number | |
maxLength: 38 | |
firstname: | |
type: string | |
maxLength: 20 | |
lastname: | |
type: string | |
maxLength: 20 | |
required: | |
- firstname | |
- lastname | |
Clerk: | |
properties: | |
idLawyer: | |
type: number | |
maxLength: 38 | |
firstname: | |
type: string | |
maxLength: 20 | |
lastname: | |
type: string | |
maxLength: 20 | |
required: | |
- firstname | |
- lastname | |
Employees: | |
properties: | |
values: | |
type: array | |
items: | |
oneOf: | |
- $ref: '#/components/schemas/Lawyer' | |
- $ref: '#/components/schemas/Clerk' | |
ListMeta: | |
properties: | |
offset: | |
type: number | |
limit: | |
type: number | |
size: | |
type: number | |
responses: {} | |
parameters: {} | |
examples: {} | |
requestBodies: {} | |
headers: {} | |
securitySchemes: {} | |
links: {} | |
callbacks: {} | |
tags: [] | |
servers: [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment