Files
crank/examples/frankfurter/history/frankfurter_monthly_rates.operation.yaml
github-ops ba29ac7b94
Deploy / deploy (push) Successful in 2m44s
CI / Rust Checks (push) Successful in 5m31s
CI / UI Checks (push) Successful in 5s
CI / Deployment Manifests (push) Successful in 2s
CI / Frontend E2E (push) Successful in 4m24s
chore: publish clean community baseline
2026-06-19 16:45:51 +00:00

128 lines
3.0 KiB
YAML

format_version: "1"
kind: operation
operation:
id: op_frankfurter_monthly_rates
name: frankfurter_monthly_rates
display_name: Месячная динамика курса
category: frankfurter_history
protocol: rest
security_level: standard
enabled: true
status: draft
version: 1
target:
kind: rest
base_url: https://api.frankfurter.dev
method: GET
path_template: /v2/rates
static_headers:
Accept: application/json
input_schema:
type: object
required: true
fields:
from:
type: string
required: true
to:
type: string
required: true
base:
type: string
required: true
quote:
type: string
required: true
output_schema:
type: object
required: true
fields:
first_date:
type: string
required: true
first_rate:
type: number
required: true
first_quote:
type: string
required: true
first_base:
type: string
required: true
input_mapping:
rules:
- source: $.mcp.from
target: $.request.query.from
required: true
- source: $.mcp.to
target: $.request.query.to
required: true
- source: $.mcp.base
target: $.request.query.base
required: true
- source: $.mcp.quote
target: $.request.query.quotes
required: true
- source: $.mcp.group
target: $.request.query.group
required: false
default_value: month
output_mapping:
rules:
- source: $.response.body[0].date
target: $.output.first_date
required: true
- source: $.response.body[0].rate
target: $.output.first_rate
required: true
- source: $.response.body[0].quote
target: $.output.first_quote
required: true
- source: $.response.body[0].base
target: $.output.first_base
required: true
execution_config:
timeout_ms: 10000
retry_policy: null
response_cache: null
auth_profile_ref: null
headers: {}
protocol_options: null
streaming: null
tool_description:
title: Месячная динамика курса
description: Возвращает первую точку месячной динамики курса за выбранный период.
tags:
- frankfurter
- currency
- history
- monthly
- rest
examples:
- input:
from: "2024-01-01"
to: "2024-06-30"
base: USD
quote: EUR
config_export:
format_version: "1"
export_mode: portable
wizard_state:
input_sample:
from: "2024-01-01"
to: "2024-06-30"
base: USD
quote: EUR
output_sample:
first_date: "2024-01-01"
first_base: USD
first_quote: EUR
first_rate: 0.91667
test_input:
from: "2024-01-01"
to: "2024-06-30"
base: USD
quote: EUR
created_at: 2026-06-19T00:00:00Z
updated_at: 2026-06-19T00:00:00Z