{"id":13489405,"url":"https://github.com/devxoul/Endpoint","last_synced_at":"2025-03-28T04:31:09.217Z","repository":{"id":56909999,"uuid":"49155838","full_name":"devxoul/Endpoint","owner":"devxoul","description":":rocket: Elegant API Abstraction for Swift","archived":true,"fork":false,"pushed_at":"2016-10-25T09:00:06.000Z","size":21,"stargazers_count":35,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T20:47:20.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devxoul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-06T19:11:48.000Z","updated_at":"2023-01-28T18:42:02.000Z","dependencies_parsed_at":"2022-08-21T04:20:35.282Z","dependency_job_id":null,"html_url":"https://github.com/devxoul/Endpoint","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FEndpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FEndpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FEndpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FEndpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devxoul","download_url":"https://codeload.github.com/devxoul/Endpoint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245970492,"owners_count":20702428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T19:00:26.424Z","updated_at":"2025-03-28T04:31:08.973Z","avatar_url":"https://github.com/devxoul.png","language":"Swift","funding_links":[],"categories":["Libs"],"sub_categories":["Network"],"readme":"Endpoint (Deprecated)\n=====================\n\n⚠️ This project has been deprecated. Consider using [Moya](https://github.com/Moya/Moya) and [MoyaSugar](https://github.com/devxoul/MoyaSugar) instead.\n\n![Swift](https://img.shields.io/badge/Swift-2.1-orange.svg)\n[![Build Status](https://travis-ci.org/devxoul/Endpoint.svg)](https://travis-ci.org/devxoul/Endpoint)\n[![CocoaPods](http://img.shields.io/cocoapods/v/Endpoint.svg)](https://cocoapods.org/pods/Endpoint)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n🚀 Elegant API Abstraction for Swift.\n\n\nAt a Glance\n-----------\n\n##### API Declarations\n\nCreate an Enum with raw type `Rule` and conform protocol `Endpoint`. Each cases is the API endpoint which contains HTTP method and URL path.\n\n```swift\nenum GitHub: Rule, Endpoint {\n    static var baseURLString = \"https://api.github.com\"\n\n    case Repo        = \"GET  /repos/\u003cowner\u003e/\u003crepo\u003e\"\n    case RepoIssues  = \"GET  /repos/\u003cowner\u003e/\u003crepo\u003e/issues\"\n    case CreateIssue = \"POST /repos/\u003cowner\u003e/\u003crepo\u003e/issues\"\n}\n```\n\n##### Using APIs\n\nEndpoint is built on [Alamofire](https://github.com/Alamofire/Alamofire). Calling `request()` on endpoint cases returns `Alamofire.Request` instance.\n\n```swift\nGitHub.Repo.request([\"owner\": \"devxoul\", \"repo\": \"Then\"]).responseJSON { response in\n    // This is an Alamofire's response block!\n}\n```\n\nThis example is sending an HTTP request to `https://api.github.com/repos/devxoul/Then` using `GET`.\n\n\nInstallation\n------------\n\n- **Using [CocoaPods](https://cocoapods.org)**:\n\n    ```ruby\n    pod 'Endpoint', '~\u003e 0.2'\n    ```\n\n- **Using [Carthage](https://github.com/Carthage/Carthage)**:\n\n    ```\n    github \"devxoul/Endpoint\" ~\u003e 0.2\n    ```\n\n- **Using [Swift Package Manager](https://swift.org/package-manager)**:\n\n    ```swift\n    import PackageDescription\n\n    let package = Package(\n        name: \"MyAwesomeApp\",\n        dependencies: [\n            .Package(url: \"https://github.com/devxoul/Endpoint\", \"0.2.0\"),\n        ]\n    )\n    ```\n\n\nLicense\n-------\n\n**Endpoint** is under MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2FEndpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevxoul%2FEndpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2FEndpoint/lists"}