-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ClientGeneratorBase
Rico Suter edited this page Apr 19, 2016
·
22 revisions
Base class of:
- GenerateClientClasses
- GenerateClientInterfaces
- GenerateDtoTypes
-
OperationGenerationMode:
- SingleClientFromOperationId: The method names in the client class are generated from the given Swagger operation ID
- MultipleClientsFromPathSegments: Multiple client classes are generated. The method names in the client classes from path segments (operation name = nth segment, client name = nth - 1 segment).
If a Swagger specification contains multiple controllers, you should choose MultipleClientsFromPathSegments to generate one client class per controller.
More information: CodeGeneratorBaseSettings.cs