-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ServiceProjectReference
Stijn Herreman edited this page Jul 15, 2020
·
10 revisions
- Package: NSwag.ApiDescription.Client
- Open issues: Label NSwag.ApiDescription.Design
In the web project:
<OpenApiRetrieveDocuments>true</OpenApiRetrieveDocuments>
<OpenApiDocumentsDirectory>.</OpenApiDocumentsDirectory>
In the client project:
<ServiceProjectReference
Include="../MyProjectWithApiMyProjectWithApi.csproj"
CodeGenerator="NSwagTypescript"
DocumentPath="MyOtherApi.json"
Namespace="My.Custom.Namespace"
ClassName="MyOtherApiClient"
GenerateNSwagTypeScriptOptions="/template:Angular /OperationGenerationMode:SingleClientFromOperationId /RxJsVersion:6 /UseSingletonProvider:true /InjectionTokenType:InjectionToken" />
PR: https://github.com/RicoSuter/NSwag/pull/2226
Note: ServiceProjectReference
appears to have been renamed to OpenApiReference
. Some sources that may be useful for updating the documentation here: