This Currency Exchange API provides information about various currencies, including their codes, numbers, and exchange rates.
Endpoint: /api/v1/currencies/today
- Method: GET
- Description: Retrieves a list of all available currencies with their respective code.
Response:
{
"currencies": [
{ "code": "RSD"},
{ "code": "EUR"},
{ "code": "AUD"},
{ "code": "CAD"},
// ...
]
}
Endpoint: /api/v1/currencies
- Method: GET
- Description: Retrieves a list of all available currencies with their respective codes, numbers, and exchange rate.
Response:
{
"currencies": [
{ "code": "RSD", "number": "1", "course": "1,000" },
{ "code": "EUR", "number": "978", "course": "117,1900" },
{ "code": "AUD", "number": "36", "course": "69,8266" },
{ "code": "CAD", "number": "124", "course": "78,4877" },
// ...
]
}
- Node.js
- npm or Yarn
- Express
- Axios
- Cheerio
- Clone the repository:
git clone https://github.com/owlCoder/currency-exchange-api.git
- Install dependencies:
cd currency-exchange-api
npm install
Start the server:
npm start
The server will start running on http://localhost:4200
.
Retrieves a list of all available currencies with their code.
Retrieves a list of all available currencies with their codes, numbers, and exchange rates.
If an error occurs during the API call, it will return a JSON response with an error message and a status code 500.
This project is licensed under the GPL 3.0 License. See the LICENSE file for details.