Giter Site home page Giter Site logo

ramnatht / swift-openapi-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apple/swift-openapi-generator

0.0 0.0 0.0 313 KB

Swift OpenAPI Generator package plugin.

Home Page: https://swiftpackageindex.com/apple/swift-openapi-generator/documentation

License: Apache License 2.0

Shell 1.82% Swift 98.09% Dockerfile 0.10%

swift-openapi-generator's Introduction

Swift OpenAPI Generator

Generate Swift client and server code from an OpenAPI document.

Overview

OpenAPI is an open specification for documenting HTTP APIs.

Swift OpenAPI Generator is a Swift package plugin that can generate the ceremony code required to make API calls, or implement API servers.

Repository organization

The Swift OpenAPI Generator project is split across multiple repositories to enable extensibility and minimize dependencies in your project.

swift-openapi-generator (source, docs) provides the plugin.

swift-openapi-runtime (source, docs) provides a library with common types and abstractions used by the generated code.

See the generator in action in Meet Swift OpenAPI Generator from WWDC23.

Choose one of the transports listed below, or create your own by adopting the ClientTransport or ServerTransport protocol:

Repository Type Description
apple/swift-openapi-urlsession Client Uses URLSession from Foundation.
swift-server/swift-openapi-async-http-client Client Uses HTTPClient from AsyncHTTPClient.
swift-server/swift-openapi-vapor Server Uses Vapor.
swift-server/swift-openapi-hummingbird Server Uses Hummingbird.

Requirements and supported features

  • Swift 5.8
  • OpenAPI 3.0.x

Supported platforms and minimum versions

The generator is used during development and is supported on macOS and Linux.

The generated code, runtime library, and transports are supported on more platforms, listed below.

Component macOS Linux iOS tvOS watchOS
Generator plugin and CLI ✅ 10.15+
Generated code, runtime, transports ✅ 10.15+ ✅ 13+ ✅ 13+ ✅ 6+

Documentation

To get started, check out the full documentation, which contains step-by-step tutorials!

swift-openapi-generator's People

Contributors

czechboy0 avatar simonjbeaumont avatar denil-ct avatar andrewse02 avatar kyle-ye avatar mahdibm avatar miguel-arrf avatar takeshi-1000 avatar gjcairo avatar macblazer avatar michalsrutek avatar yanniks avatar yim-lee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.