Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/marekpridal/vapordemo


https://github.com/marekpridal/vapordemo

crud database demo fluent json-body leaf mysql server swift swift4 vapor

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        


API Template





Documentation


Team Chat


MIT License


Continuous Integration


Swift 4.1

# VaporDemo
Demo of using Swift for server app

GET

`/requestDebugDescription`

Try 🙌

`/exchanges`

Try 🙌

`/exchangeRate`

Try 🙌

POST

`/exchange`

JSON BODY example

```
{
"country_code":"EUR",
"value":1,
"timestamp":null,
"priority":1
}
```

Try 🙌

PUT

`/updateExchangeRate`

JSON BODY example

```
{
"country_code":"CZK",
"value":25.644444,
"timestamp":null,
"priority":1
}
```

Try 🙌

DELETE

`/deleteExchangeRate`

JSON BODY example

```
{
"country_code":"CZK",
"value":25.644444,
"timestamp":null,
"priority":1
}
```

Try 🙌