https://github.com/tombuildsstuff/towns-api-vapor
https://github.com/tombuildsstuff/towns-api-vapor
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tombuildsstuff/towns-api-vapor
- Owner: tombuildsstuff
- License: mit
- Created: 2016-09-12T20:46:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-13T06:58:00.000Z (almost 10 years ago)
- Last Synced: 2025-02-07T14:46:35.555Z (over 1 year ago)
- Language: Swift
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# Towns API
This is an implementation of the Towns API using Swift's [Vapor web framework](http://vapor.codes)
## Endpoints
*HTTP GET:* `/towns/all`
```
[
{
"country": "England",
"name": "Winchester"
},
{
"country": "Germany",
"name": "Berlin"
},
{
"country": "Italy",
"name": "Sienna"
},
{
"country": "The Netherlands",
"name": "Amsterdam"
},
{
"country": "Cuba",
"name": "Havana"
}
]
```