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
- Host: GitHub
- URL: https://github.com/marekpridal/vapordemo
- Owner: marekpridal
- Created: 2019-01-22T16:30:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-27T15:09:06.000Z (almost 5 years ago)
- Last Synced: 2025-01-19T23:48:09.519Z (over 1 year ago)
- Topics: crud, database, demo, fluent, json-body, leaf, mysql, server, swift, swift4, vapor
- Language: Swift
- Homepage: http://www.vapordemo.marekpridal.eu
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VaporDemo
Demo of using Swift for server app
GET
`/requestDebugDescription`
`/exchanges`
`/exchangeRate`
POST
`/exchange`
JSON BODY example
```
{
"country_code":"EUR",
"value":1,
"timestamp":null,
"priority":1
}
```
PUT
`/updateExchangeRate`
JSON BODY example
```
{
"country_code":"CZK",
"value":25.644444,
"timestamp":null,
"priority":1
}
```
DELETE
`/deleteExchangeRate`
JSON BODY example
```
{
"country_code":"CZK",
"value":25.644444,
"timestamp":null,
"priority":1
}
```