Skip to content

Toolset for automatically building the mittwald API client for PHP

Notifications You must be signed in to change notification settings

mittwald/api-client-go-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mittwald Golang-SDK utilities

Important

This repository contains tools for automatically generating the Golang SDK. If you only want to use the mittwald mStudio API in your Golang project, there should be no need for you to interact with this project; please use the mittwald Go client in this case.

Using the generator toolkit

Generating the client locally

Install this builder, or invoke it directly from source:

$ go install github.com/mittwald/api-client-go-builder/cmd/mittwald-go-client-builder@latest

$ # alternatively:
$ git clone https://github.com/mittwald/api-client-go-builder

After cloning this repository, you can generate the client locally. The following commands assume that you have a local checkout of the github.com/mittwald/api-client-go package available in your local working directory:

$ mittwald-go-client-builder https://api.mittwald.de/v2/openapi.json ./mittwaldv2/generated mittwaldv2

$ # alternatively:
$ go run ./cmd/mittwald-go-client-builder/main.go https://api.mittwald.de/v2/openapi.json ./mittwaldv2/generated mittwaldv2

After generating, run the code formatting (not part of the generate command because it takes a long time) and the tests and commit the changes:

$ goimports -w ./mittwaldv2/generated
$ go test ./...
$ git add .
$ git commit -m "Update generated client"

About

Toolset for automatically building the mittwald API client for PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages