Cash converter API

INTRO

API documentation of https://foutaise.org/flooze/

GET https://foutaise.org/flooze/api/v1/help

Display this API documentation.

Response

text/html

GET https://foutaise.org/flooze/api/v1/currencies

List available currencies.

Response

application/json: array of objects with the following properties

    {
        acronym: string,
        description: string,
        rate: float
    }

Example

    curl https://foutaise.org/flooze/api/v1/currencies

POST https://foutaise.org/flooze/api/v1/convert

Convert an amount of cash from a currency to another one.

Request data

from: string (required)

Acronym name of the source currency.

to: string (required)

Acronym name of the target currency.

amount: float (required)

Amount of cash to convert.

Response

application/json: float.

Example

    curl -X POST \
        https://foutaise.org/flooze/api/v1/convert \
        -d "from=EUR" \
        -d "to=CHF" \
        -d "amount=42"