REST API, Service version 1.0.0
Currency convert#
Convert a currency to another.
Summary#
- Request
- Mandatory parameters
- Response
- Details of fields
- 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:
{
"from": "EUR",
"value": 1000,
"to": "MAD"
}GET data:
`/bgis/service/currency/1.0/convert?from=FJD&value=1.0&to=USD`Parameters#
fromstringrequiredThe currency to convert from
valuenumber (float)requiredThe amount to of the from currency to be converted
tostringrequiredThe currency to convert from
geoserverstringGeoserver name.
swidxinteger (int32)deprecatedSwitch 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
}