{"repo":"wei18/github-rest-api-swift-openapi","free":true,"listed":false,"github":"https://github.com/wei18/github-rest-api-swift-openapi","clone":"git clone https://github.com/wei18/github-rest-api-swift-openapi.git","description":"Type-safe Swift client for GitHub's REST API, generated from GitHub's official OpenAPI spec with Apple's Swift OpenAPI Generator. Auto-released monthly.","language":"Swift","stars":22,"topics":["github-actions","github-api","openapi","swift","swiftpackage","docc","githubapi","oas3","api","rest-api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"GitHubRestAPISwiftOpenAPI English 繁體中文 Type-safe Swift clients for GitHub's REST API, generated from GitHub's official OpenAPI description with Apple's Swift OpenAPI Generator. Features - Type-safe by construction — every endpoint, parameter, and response schema is generated from GitHub's official OpenAPI document; mismatches fail at compile time. - Modular — each GitHub API category ships as its own library product (e.g. GitHubRestAPIIssues , GitHubRestAPIRepos ), so you only build what you use. - Always up to date — the package tracks GitHub's API description automatically and publishes a release every month. - Cross-platform — macOS, iOS, tvOS, watchOS, visionOS, and Linux. Requirements Minimum --- --- Swift 5.9 macOS 10.15 iOS / tvOS 13 watchOS 6 visionOS 1 Installation Add the package to your Package.swift : Then declare the products you need as target dependencies: In Xcode: File ▸ Add Package Dependencies… and enter the repository URL. Quick Start The tutorial walks through a complete example step by step, from adding the dependency to pattern matching on responses. Authentication Inject a token with a ClientMiddleware : Real-world example: upsert an issue comment Update a bot comment in place, or create it if absent — the pattern used by CI status comments. Available Modules One library product per GitHub API category — 50 in total. Full module list Browse the full API surface in the DocC documentation. How It Works - Dependabot bumps the OpenAPI description weekly; C","default_branch":null,"files":null,"tree":[],"storefront":"/r/wei18","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wei18/github-rest-api-swift-openapi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}