{"id":15036470,"url":"https://github.com/apple/swift-openapi-urlsession","last_synced_at":"2025-04-12T18:42:48.799Z","repository":{"id":171107888,"uuid":"630567597","full_name":"apple/swift-openapi-urlsession","owner":"apple","description":"URLSession transport for Swift OpenAPI Generator.","archived":false,"fork":false,"pushed_at":"2025-04-02T07:31:57.000Z","size":165,"stargazers_count":173,"open_issues_count":6,"forks_count":40,"subscribers_count":102,"default_branch":"main","last_synced_at":"2025-04-03T23:09:12.545Z","etag":null,"topics":["openapi","swift","transport","urlsession"],"latest_commit_sha":null,"homepage":"https://swiftpackageindex.com/apple/swift-openapi-urlsession/documentation","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apple.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-20T16:53:01.000Z","updated_at":"2025-04-03T20:08:08.000Z","dependencies_parsed_at":"2023-06-28T20:01:08.284Z","dependency_job_id":"eef2855d-2c27-47ee-b31f-1278b661cc11","html_url":"https://github.com/apple/swift-openapi-urlsession","commit_stats":null,"previous_names":["apple/swift-openapi-urlsession"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple%2Fswift-openapi-urlsession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple%2Fswift-openapi-urlsession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple%2Fswift-openapi-urlsession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple%2Fswift-openapi-urlsession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apple","download_url":"https://codeload.github.com/apple/swift-openapi-urlsession/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248617125,"owners_count":21134190,"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":["openapi","swift","transport","urlsession"],"created_at":"2024-09-24T20:31:15.219Z","updated_at":"2025-04-12T18:42:48.794Z","avatar_url":"https://github.com/apple.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URLSession Transport for Swift OpenAPI Generator\n\n[![](https://img.shields.io/badge/docc-read_documentation-blue)](https://swiftpackageindex.com/apple/swift-openapi-urlsession/documentation)\n[![](https://img.shields.io/github/v/release/apple/swift-openapi-urlsession)](https://github.com/apple/swift-openapi-urlsession/releases)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fapple%2Fswift-openapi-urlsession%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/apple/swift-openapi-urlsession)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fapple%2Fswift-openapi-urlsession%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/apple/swift-openapi-urlsession)\n\nA client transport that uses the [URLSession](https://developer.apple.com/documentation/foundation/urlsession) type from the [Foundation](https://developer.apple.com/documentation/foundation) framework to perform HTTP operations.\n\nUse the transport with client code generated by [Swift OpenAPI Generator](https://github.com/apple/swift-openapi-generator).\n\n## Supported platforms and minimum versions\n\n| macOS     | Linux, Windows | iOS    | tvOS   | watchOS | visionOS |\n| :-:       | :-:   | :-:    | :-:    | :-:     | :-:      |\n| ✅ 10.15+ | ✅    | ✅ 13+ | ✅ 13+ | ✅ 6+   | ✅ 1+     |\n\nNote: Streaming support only available on macOS 12+, iOS 15+, tvOS 15+, watchOS 8+, and visionOS 1+. For streaming support on Linux, please use the [AsyncHTTPClient Transport](https://github.com/swift-server/swift-openapi-async-http-client)\n\n## Usage\n\nAdd the package dependency in your `Package.swift`:\n\n```swift\n.package(url: \"https://github.com/apple/swift-openapi-urlsession\", from: \"1.0.0\"),\n```\n\nNext, in your target, add `OpenAPIURLSession` to your dependencies:\n\n```swift\n.target(name: \"MyTarget\", dependencies: [\n    .product(name: \"OpenAPIURLSession\", package: \"swift-openapi-urlsession\"),\n]),\n```\n\nThen, to get started, check out `URLSessionTransport`.\n\n## Documentation\n\nTo learn more, check out the full [documentation](https://swiftpackageindex.com/apple/swift-openapi-urlsession/documentation).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapple%2Fswift-openapi-urlsession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapple%2Fswift-openapi-urlsession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapple%2Fswift-openapi-urlsession/lists"}