BeMapAPI
BeMap 4.1.0

REST API, Service version 1.0.0

Currency convert#

Convert a currency to another.

Summary#

  1. Request
    1. Mandatory parameters
  2. Response
    1. Details of fields
    2. Response samples

Request#

The request can be sent with both GET and POST methods of HTTP. For the POST method, the request must be sent with the HTTP header Content-Type set to application/json.

Sample: URI: /bgis/service/currency/1.0/convert

POST data:

javascript
{
  "from": "EUR",
  "value": 1000,
  "to": "MAD"
}

GET data:

`/bgis/service/currency/1.0/convert?from=FJD&value=1.0&to=USD`

Parameters#

  • fromstringrequired

    The currency to convert from

  • valuenumber (float)required

    The amount to of the from currency to be converted

  • tostringrequired

    The currency to convert from

  • geoserverstring

    Geoserver name.

  • swidxinteger (int32)deprecated

    Switch index.

Response#

Return the converted value amount.

Details of fields#

lastUpdate: time stamp of data will be updated.#

value: converted value amount.#

Response samples#

JSON Sample:

{
  "lastUpdate": 1670507755480,
  "value": 11096.038
}