Code Snippets
Fern generates code snippets of how to consume the SDK in various languages. These code snippets are embedded in a variety of different locations:
Snippets in the SDK
Each SDK contains code snippets so that users can see usage examples on hover. See examples below:
Snippets in documentation
If you use Fern to generate your developer documentation, then you can configure the code snippets to be automatically populated in your documentation.
Snippets over API
We also provide a public API that you can use to fetch code snippets. This is useful if you want to display code snippets in your own documentation or website.