mirror of
https://github.com/fawazahmed0/exchange-api.git
synced 2025-06-29 18:21:14 +00:00
Update MIGRATION.md
This commit is contained in:
parent
2543357e60
commit
b0496dfed0
12
MIGRATION.md
12
MIGRATION.md
@ -3,4 +3,14 @@
|
||||
|
||||
2. change `date` from `YYYY-MM-DD` to `YYYY.M.D` . Eg: `2024-03-02` becomes `2024.3.2`
|
||||
|
||||
3. There is no `/currencies/{currencyCode}/{currencyCode}` endpoint in this new API, so please only use `/currencies/{currencyCode}` endpoint
|
||||
3. There is no `/currencies/{currencyCode}/{currencyCode}` endpoint in this new API, so please only use `/currencies/{currencyCode}` endpoint. See example given below.
|
||||
|
||||
```js
|
||||
json = fetchJSON(`/currencies/{fromCurrency}/{toCurrency}`)
|
||||
rate = json[toCurrency]
|
||||
```
|
||||
becomes
|
||||
```js
|
||||
json = fetchJSON(`/currencies/{fromCurrency}`)
|
||||
rate = json[fromCurrency][toCurrency]
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user