Customize SDK Method Names
The x-fern-sdk-group-name and x-fern-sdk-method-name extensions allow you to customize the generated SDK method
names.
Usage
In the example below, Fern will generate a method called client.users.create() for the POST /users endpoint.
openapi.yaml
Top level methods
If you omit the x-fern-sdk-group-name extension, then the generated SDK method will live at the root.
In the example below, Fern will generate a method called client.send():
openapi.yaml
Multiple levels of nesting
If you add more than one x-fern-sdk-group-name extension, then the generated SDK will nest group names.
The order of the group names is preserved in the generated SDK method.
In the example below, Fern will generate a method called client.users.notifications.send():
openapi.yaml