Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fbiville/currency-conversion


https://github.com/fbiville/currency-conversion

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# Currency converter API

## Prereqs
Install the latest [Go version](https://go.dev/).

## Run

### Start Server

```go
go run ./cmd/server
```

### Run Client

Send a currency conversion request:

```shell
curl --header 'Content-Type: application/json' \
--data '{"sourceCurrency": "EUR", "sourceValue": 7000, "targetCurrency": "TRY"}' \
'http://[::]:65012'
```

Note: replace the address by the actual address printed by the first command.