diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index bee0e87..0000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -croupierCbrf \ No newline at end of file diff --git a/.idea/croupierCbrf.iml b/.idea/croupierCbrf.iml deleted file mode 100644 index 5e764c4..0000000 --- a/.idea/croupierCbrf.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/markdown.xml b/.idea/markdown.xml deleted file mode 100644 index 826b52d..0000000 --- a/.idea/markdown.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 2e24678..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/openapi.yaml b/openapi.yaml new file mode 100644 index 0000000..7674750 --- /dev/null +++ b/openapi.yaml @@ -0,0 +1,35 @@ +openapi: 3.0.1 +info: + title: Сервис получения текущего курса из центробанка РФ + description: |- + Область отвественности сервиса - воркером два раза в день получать текущий курс валют и отдавать его по запросу + version: 1.0.0 +tags: + - name: currencies + description: сервис для получения результата пересчёта денег в нужную валюту +paths: + /change + get: + tags: + - currencies + description: Получить количество денег в пересчёте на десятые части указанной валюты. На вход подаются копейки. + parameters: + - name: cur + in: query + description: валюта, в которую надо перевести переданнео число + required: true + - name: val + in: query + description: количество копеек, которые надо перевести в указанную валюту + required: true + responses: + '200': + description: Успешно пересчитана сумма + content: + application/json: + schema: + type: object + properties: + money: + type: integer + example: 12065