diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 552b24b..afd4903 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -34,9 +34,13 @@ export default defineConfig({ slug: 'docs/endpoints/getrate' }, { - label: 'Create Charts - /api/getChart', + label: 'Create charts - /api/getChart', slug: 'docs/endpoints/create-chart' }, + { + label: 'Get metadata - /api/metadata', + slug: 'docs/endpoints/metadata' + } ], }, ], diff --git a/docs/src/content/docs/docs/endpoints/metadata.mdx b/docs/src/content/docs/docs/endpoints/metadata.mdx new file mode 100644 index 0000000..79cebbe --- /dev/null +++ b/docs/src/content/docs/docs/endpoints/metadata.mdx @@ -0,0 +1,79 @@ +--- +title: Get metadata - /api/metadata +--- + +Currencies are identified by standard three-letter `ISO 4217` currency codes. + +import { Tabs, TabItem, Aside } from '@astrojs/starlight/components'; + +## Get data on available dates and currencies. +### Request + + + + + +```shell +curl --request GET --url https://kekkai-api.redume.su/api/metadata/ +``` + + + + + + +```python +import requests + +res = requests.get('https://kekkai-api.redume.su/api/metadata/', timeout=3) + +print(res.json()) +``` + + + + + + +```javascript +const axios = require('axios'); + +axios.get('https://kekkai-api.redume.su/api/metadata/') + .then((res) => { + console.log(JSON.stringify(res.json())); + }) + .catch((err) => { + console.error(err); + }); +``` + + + + + +### Response + + \ No newline at end of file