Skip to content

OpenISMS/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protobuf setup

This folder contains the protobuf-definition for the api.

Generating source files

C++, C#, Java, JavaScript, Kotlin, Obj-C, PHP, Python, Ruby

These languages are built into the protoc compiler. Install the compiler via

brew install protobuf

and then run

protoc io/openisms/api.proto --objc_out=. --java_out=. # for more languages see protoc --help

Swift

Install the official plugin via

brew install swift-protobuf

and run

protoc io/openisms/api.proto --swift_out=.

Scala

Download the latest release from github.com/scalapb/ScalaPB/ and run

protoc io/openisms/api.proto --plugin=/path/to/download/protoc-gen-scala --scala_out=src/main/scala

(For more info see this guide.)