Skip to content

Instantly share code, notes, and snippets.

@mishin
Last active June 10, 2020 13:19
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 mishin/31fc9ae2b0d4acd79fc668fded257c41 to your computer and use it in GitHub Desktop.
Save mishin/31fc9ae2b0d4acd79fc668fded257c41 to your computer and use it in GitHub Desktop.
openapi: 3.0.1
info:
title: intro.uuid-message-processing
description: Service viewer
version: 1.0.0
servers:
- url: /
tags:
- name: service-select
description: service
paths:
/v1/{uuid}:
parameters:
- name: uuid
in: path
description: UUID
required: true
schema:
type: string
format: uuid
example: 5705de72-05d0-4a81-9c25-29ae234ccfb3
get:
summary: Getting Currency by uuid
operationId: getCurrency
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/CurrencyDTO'
404:
description: Не найден uuid
components:
schemas:
ErrorMessage:
type: object
properties:
code:
type: integer
message:
type: string
CurrencyDTO:
type: object
required: [uuid,code,name,numeric_code,unicode]
properties:
uuid:
type: string
format: uuid
example: 5705de72-05d0-4a81-9c25-29ae234ccfb3
name:
type: string
code:
type: string
isMain:
type: string
unicode:
type: string
issuing_country_uuid:
type: string
format: uuid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment