What is gRPC?
Enterprise feature
This feature is available only for the Enterprise plan. To get started, reach out to support@buildwithfern.com.
Fern only supports gRPC SDK generation for .NET/C#. Protobuf specs can be used for documentation generation in all languages.
gRPC is a modern, open-source, high-performance Remote Procedure Call (RPC) framework that can run in any environment. It uses Protocol Buffers (protobuf) as the interface definition language and supports multiple programming languages.
Fern is compatible with gRPC services and can generate SDKs and documentation from your .proto
files.
Below is an example of a gRPC service definition:
Set up your fern folder
Add your gRPC service
Add your gRPC files to the fern directory. You can place it in a subfolder called proto
or directly in the fern directory.
Create a fern.config.json
file
Add a fern.config.json
file in your fern directory that lists your organization and the current version of the Fern CLI:
Create a generators.yml
file
Create a generators.yml
file in your fern directory and add a reference to your gRPC proto files. See gRPC generators.yml reference for complete configuration options.
Your final directory structure: