TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jan 2018 |
SwiftSwift Version | 3.1 |
SPMSupports SPM | ✓ |
Maintained by BAN Jun.
Depends on: | |
APIKit | >= 0 |
URITemplate | >= 0 |
Swift client generator for API Blueprint
Input file is an API Blueprint AST file generated by drafter.
Output is a Swift client code (with some dependencies: APIKit, Himotoki, etc)
see Examples
debug
% swift build
release (SwiftBeaker/releases)
% swift build -c release -Xswiftc -static-stdlib
% drafter -f json api-blueprint-document.md > apib.json # generate AST using drafter
% SwiftBeaker apib.json > APIClient.swift
for use in a framework target for the API:
% SwiftBeaker --public apib.json > APIClient.swift # public memberwise init & public members
SwiftBeaker converts ...