✨ Nice way to make your requests
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)
}
}
}
- You don't need write always the same thing
- 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.
- Improvement in additional methods.
- Work better in routes.
- Possibilites user create routes.
- And always improve code.
- This lib is avaiable in Swift Package Manager, so just install...
Providey is under MIT license. See the LICENSE file for more info.