{"repo":"apple/swift-openapi-generator","free":true,"listed":false,"github":"https://github.com/apple/swift-openapi-generator","clone":"git clone https://github.com/apple/swift-openapi-generator.git","description":"Generate Swift client and server code from an OpenAPI document.","language":"Swift","stars":1958,"topics":["ios-swift","openapi","server-side-swift","swift","plugin","swiftpm"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Swift OpenAPI Generator Generate Swift client and server code from an OpenAPI document. Overview [OpenAPI][openapi] is a specification for documenting HTTP services. An OpenAPI document is written in either YAML or JSON, and can be read by tools to help automate workflows, such as generating the necessary code to send and receive HTTP requests. Swift OpenAPI Generator is a Swift package plugin that can generate the ceremony code required to make API calls, or implement API servers. The code is generated at build-time, so it's always in sync with the OpenAPI document and doesn't need to be committed to your source repository. Features - Works with OpenAPI Specification versions 3.0 and 3.1 and has preliminary support for version 3.2. - Streaming request and response bodies enabling use cases such as JSON event streams, and large payloads without buffering. - Support for JSON, multipart, URL-encoded form, base64, plain text, and raw bytes, represented as value types with type-safe properties. - Client, server, and middleware abstractions, decoupling the generated code from the HTTP client library and web framework. To see these features in action, check out the list of [example projects][examples-generator]. Usage Swift OpenAPI Generator can be used to generate API clients and server stubs. Below you can see some example code, or you can follow one of the [step-by-step tutorials][tutorials-generator]. Using a generated API client The generated Client type provides a method for ","default_branch":null,"files":null,"tree":[],"storefront":"/r/apple","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apple/swift-openapi-generator/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."}