Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 752 Bytes

README.md

File metadata and controls

35 lines (19 loc) · 752 Bytes

Sdkgen

A CLI tool for generating SDK clients for Rest & Graphql APIs using swagger and graphql schema files.

Installation

go install github.com/wisdommatt/sdkgen

Usage

To generate SDK client from GraphQl schema file:

sdkgen graphql --schema sample.graphql --output pkg/sample

--schema and --output parameters are required.

To generate SDK client from OpenAPI | Swagger schema file:

sdkgen openapi --schema sample-api.json --output pkg/sample

You can generate the client from a json or yaml schema file, --schemaand--output parameters are required.

Documentation

https://pkg.go.dev/github.com/wisdommatt/sdkgen