cbrfWorker/openapi.yaml
2023-05-22 19:48:44 +00:00

41 lines
1.7 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

openapi: 3.0.1
info:
title: Сервис получения текущего курса из центробанка РФ
description: |-
Область отвественности сервиса - воркером два раза в день получать текущий курс валют и отдавать его по запросу
version: 1.0.0
tags:
- name: currencies
description: сервис для получения результата пересчёта денег в нужную валюту
paths:
/change:
get:
tags:
- currencies
description: Получить количество денег в пересчёте на десятые части указанной валюты. На вход подаются копейки.
parameters:
- name: currencyFrom
in: query
description: валюта, из которой надо перевести переданное число
required: true
- name: currencyTo
in: query
description: валюта, в которую надо перевести переданное число
required: true
- name: value
in: query
description: количество копеек, которые надо перевести в указанную валюту
required: true
responses:
'200':
description: Успешно пересчитана сумма
content:
application/json:
schema:
type: object
properties:
money:
type: integer
format: int64
example: 12065