{"id":19857965,"url":"https://github.com/boldare/swift-api","last_synced_at":"2025-05-02T02:30:47.963Z","repository":{"id":62456449,"uuid":"75774583","full_name":"boldare/swift-api","owner":"boldare","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-07T13:57:21.000Z","size":6867,"stargazers_count":12,"open_issues_count":1,"forks_count":5,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-04-02T12:39:43.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/boldare.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-12-06T21:49:47.000Z","updated_at":"2022-07-17T11:23:16.000Z","dependencies_parsed_at":"2022-11-02T00:15:17.319Z","dependency_job_id":null,"html_url":"https://github.com/boldare/swift-api","commit_stats":null,"previous_names":["xsolve-pl/swift-api"],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boldare%2Fswift-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boldare%2Fswift-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boldare%2Fswift-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boldare%2Fswift-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boldare","download_url":"https://codeload.github.com/boldare/swift-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972431,"owners_count":21673602,"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-11-12T14:20:32.879Z","updated_at":"2025-05-02T02:30:42.955Z","avatar_url":"https://github.com/boldare.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftAPI\n\n\u003cdiv align = \"center\"\u003e\n  \u003ca href=\"http://cocoapods.org/pods/SwiftAPI\"\u003e\n    \u003cimg src=\"https://img.shields.io/cocoapods/v/SwiftAPI.svg?style=flat\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align = \"center\"\u003e\n  \u003ca href=\"http://cocoapods.org/pods/SwiftAPI\" target=\"blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/cocoapods/p/SwiftAPI.svg?style=flat\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://cocoapods.org/pods/SwiftAPI\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/swift-4.1-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://cocoapods.org/pods/SwiftAPI\" target=\"blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/cocoapods/l/SwiftAPI.svg?style=flat\" /\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/div\u003e\n\n**Swift API** was born as idea of having very light, very fast, written in swift, easy to update and ready to use out of the box library for communication through network. Now that idea is real as cocoapod library. Main features of library:\n- Written using Swift 4\n- Ready to use out of the box\n- Using URLSession for managing requests\n- Allows sending requests in foreground or background\n- Supports connection with REST and non-REST APIs\n- Introduces easy to use wrapper for status codes\n- Is available for iOS, macOS, watchOS and tvOS\n- Supports Codable protocol\n\n\n## Installation\n\nSwift-API is available through [CocoaPods](http://cocoapods.org/pods/SwiftAPI). To install it, simply add the following line to your Podfile\n```ruby\npod 'SwiftAPI'\n```\nand run\n```ruby\npod install\n```\n\n\n## Usage\n\nAt the beginning, import library by adding\n```swift\nimport SwiftAPI\n```\nthen you can create instance of ApiService\n```swift\nlet apiService = ApiService()\n```\nor RestService\n```swift\nlet rootURL = URL(string:\"https://API.SERVER.ADDRESS.COM\")\nlet apiPath = \"/v1.0\"\nlet restService = RestService(baseUrl: rootURL, apiPath: apiPath)\n```\nand now you can start sending requests.\n\nTo get familiar with more advanced usage please take a look at usage example available with library.\n\n\n## Authors\n\n- Marek Kojder, marek.kojder@xsolve.pl\n- Sławomir Zagórski, slawomir.zagorski@xsolve.pl\n- Radosław Budzik, radoslaw.budzik@xsolve.pl\n\n\n## License\n\nSwiftAPI is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboldare%2Fswift-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboldare%2Fswift-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboldare%2Fswift-api/lists"}