/Providey

Elegant HTTP Networking in Swift

Primary LanguageSwift

Screen Shot 2019-09-10 at 12 00 29

Swift Build Status

✨ Nice way to make your requests

At a Glance

With Providey

Providey<[Post]>().request(router: .home, withMethod: .get, params: nil) { (result) in
     switch result {
         case .failure(let error):
                print(error)
         case .success(let posts):
                print(posts)
            }
     }
}

Small Advantages

  • You don't need write always the same thing

IDEA

  • The idea of this project, is abstract the layer of service, to make easy work with your API. The big idea is to community can contribute to make this lib best.

TO-DO

  • Improvement in additional methods.
  • Work better in routes.
  • Possibilites user create routes.
  • And always improve code.

Installation

  1. This lib is avaiable in Swift Package Manager, so just install...

License

Providey is under MIT license. See the LICENSE file for more info.