Skip to content

Simple API in Swift, with Vapor, a Postgres database, hosted on Heroku

License

Notifications You must be signed in to change notification settings

ChristianVinterly/Friends

Repository files navigation

Friends API

This project uses Swift, XCode, Vapor, Vapor Toolbox, Postgres and Heroku.

GET: https://friends-api-123.herokuapp.com/friends
GET: https://friends-api-123.herokuapp.com/friends/id

POST: https://friends-api-123.herokuapp.com/friend
Example of expected body:

{
    "name": "John Doe",
    "age": 20,
    "email": "john@email.com"
}

Note: The Heroku instance will fall asleep after 30 min inactivity, so the first ping might be slow, since it needs to wake up.

📖 Documentation

Visit the Vapor web framework's documentation for instructions on how to use this package.

About

Simple API in Swift, with Vapor, a Postgres database, hosted on Heroku

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages