-
Notifications
You must be signed in to change notification settings - Fork 16
/
cryptoprices.smoothplugins.com.yaml
46 lines (46 loc) · 1.44 KB
/
cryptoprices.smoothplugins.com.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
openapi: 3.0.1
info:
title: Crypto Price Checker
description: 'Crypto Price Checker - A Crypto Prices app that takes a pair of crypto
or fiat tickers and returns the current price of the pair. Provide the tickers
and the app will return the current price. USD will be used as ticker_to in case
no value is passed. Example: /?ticker_from=BTC&ticker_to=USD - will return BTC-USD
price.'
version: v1.0
servers:
- url: https://cryptoprices.smoothplugins.com
paths:
"/":
get:
operationId: check_price
summary: Returns the current price of a pair of crypto or fiat tickers
description: Returns the current price of a pair of crypto or fiat tickers
parameters:
- name: ticker_from
in: query
description: The crypto or fiat ticker to find the current price from
required: true
schema:
type: string
- name: ticker_to
in: query
description: The crypto or fiat ticker to find the current price to
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
"$ref": "#/components/schemas/check_price_response"
components:
schemas:
check_price_response:
type: object
properties:
result:
type: string
description: The current price of the pair of crypto or fiat tickers