Endpoint alternatives and similar libraries
Based on the "Network" category.
Alternatively, view Endpoint alternatives based on common mentions on social networks and blogs.
-
Siesta
Elegant abstraction for REST APIs that untangles stateful messes. An alternative to callback- and delegate-based networking. -
ResponseDetective
A non-intrusive framework for intercepting any outgoing requests and incoming responses between your app and server for debugging purposes. -
Connectivity
๐ Makes Internet connectivity detection more robust by detecting Wi-Fi networks without Internet access. -
PeerKit
An open-source Swift framework for building event-driven, zero-config Multipeer Connectivity apps. -
Express
Swift Web Application framework, supporting both Synchronous and Asynchronous (Futures based) styles. Inspired by Play framework and Express.js. -
Digger
Digger is a lightweight download framework that requires only one line of code to complete the file download task
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Endpoint or a related project?
README
Endpoint (Deprecated)
โ ๏ธ This project has been deprecated. Consider using Moya and MoyaSugar instead.
๐ Elegant API Abstraction for Swift.
At a Glance
API Declarations
Create an Enum with raw type Rule
and conform protocol Endpoint
. Each cases is the API endpoint which contains HTTP method and URL path.
enum GitHub: Rule, Endpoint {
static var baseURLString = "https://api.github.com"
case Repo = "GET /repos/<owner>/<repo>"
case RepoIssues = "GET /repos/<owner>/<repo>/issues"
case CreateIssue = "POST /repos/<owner>/<repo>/issues"
}
Using APIs
Endpoint is built on Alamofire. Calling request()
on endpoint cases returns Alamofire.Request
instance.
GitHub.Repo.request(["owner": "devxoul", "repo": "Then"]).responseJSON { response in
// This is an Alamofire's response block!
}
This example is sending an HTTP request to https://api.github.com/repos/devxoul/Then
using GET
.
Installation
Using CocoaPods:
pod 'Endpoint', '~> 0.2'
Using Carthage:
github "devxoul/Endpoint" ~> 0.2
Using Swift Package Manager:
import PackageDescription let package = Package( name: "MyAwesomeApp", dependencies: [ .Package(url: "https://github.com/devxoul/Endpoint", "0.2.0"), ] )
License
Endpoint is under MIT license. See the [LICENSE](LICENSE) file for more info.
*Note that all licence references and agreements mentioned in the Endpoint README section above
are relevant to that project's source code only.