Cash converter API

INTRO

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

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

Display this API documentation.

Response

text/html

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

List available currencies.

Response

application/json: array of objects with the following properties

    {
        acronym: string,
        description: string
    }

Example

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

POST https://foutaise.org/flooze/api/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/convert \
        -d "from=EUR" \
        -d "to=CHF" \
        -d "amount=42"