You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Security - supporting role-based security and custom authentication-schemes](#security---supporting-role-based-security-and-custom-authentication-schemes)
23
28
-[Roles and authentication-scheme validation](#roles-and-authentication-scheme-validation)
@@ -79,12 +84,12 @@ flowchart TB;
79
84
80
85
CLI --> ApiGenerator;
81
86
CLI --> CodingRules;
82
-
87
+
83
88
ApiGenerator --> ClientCSharp;
84
89
ApiGenerator --> ServerMvc;
85
90
ApiGenerator --> ServerMinimal;
86
91
ApiGenerator .-> Contracts;
87
-
92
+
88
93
ClientCSharp --> Framework;
89
94
ClientCSharp .-> Contracts;
90
95
ClientCSharp .-> CSharpGenerator;
@@ -181,6 +186,9 @@ COMMANDS:
181
186
```powershell
182
187
atc-rest-api-generator generate server all -h
183
188
189
+
DESCRIPTION:
190
+
Creates API, domain and host projects.
191
+
184
192
USAGE:
185
193
atc-rest-api-generator.exe generate server all [OPTIONS]
186
194
@@ -195,16 +203,24 @@ OPTIONS:
195
203
-s, --specificationPath <SPECIFICATIONPATH> Path to Open API specification (directory, file or url)
196
204
--optionsPath [OPTIONSPATH] Path to options json-file
197
205
--validate-strictMode Use strictmode
206
+
--validate-operationIdValidation Use operationId validation
198
207
--validate-operationIdCasingStyle [OPERATIONIDCASINGSTYLE] Set casingStyle for operationId. Valid values are: CamelCase (default), KebabCase, PascalCase, SnakeCase
199
208
--validate-modelNameCasingStyle [MODELNAMECASINGSTYLE] Set casingStyle for model name. Valid values are: CamelCase, KebabCase, PascalCase (default), SnakeCase
200
209
--validate-modelPropertyNameCasingStyle [MODELPROPERTYNAMECASINGSTYLE] Set casingStyle for model property name. Valid values are: CamelCase (default), KebabCase, PascalCase, SnakeCase
201
-
--useAuthorization Use authorization
202
210
-p, --projectPrefixName <PROJECTPREFIXNAME> Project prefix name (e.g. 'PetStore' becomes 'PetStore.Api.Generated')
211
+
--disableCodingRules Disable ATC-Coding-Rules
212
+
--useProblemDetailsAsDefaultResponseBody Use ProblemDetails as default responsen body
213
+
--endpointsLocation [ENDPOINTSLOCATION] If endpoints-localtion is provided, generated files will be placed here instead of the Endpoints folder
214
+
--contractsLocation [CONTRACTSLOCATION] If contracts-localtion is provided, generated files will be placed here instead of the Contracts folder
215
+
--handlersLocation [HANDLERSLOCATION] If handlers-localtion is provided, generated files will be placed here instead of the Handlers folder
216
+
--usePartialClassForContracts Use Partial-Class for contracts
217
+
--usePartialClassForEndpoints Use Partial-Class for endpoints
218
+
--removeNamespaceGroupSeparatorInGlobalUsings Remove space between namespace groups in GlobalUsing.cs
219
+
--aspnet-output-type [ASPNETOUTPUTTYPE] Set AspNet output type for the generated api. Valid values are: Mvc (default), MinimalApi
220
+
--swagger-theme [SWAGGERTHEME] Set Swagger theme for the hosting api. Valid values are: None, Default (default), Light, Dark
203
221
--outputSlnPath <OUTPUTSLNPATH> Path to solution file (directory or file)
204
222
--outputSrcPath <OUTPUTSRCPATH> Path to generated src projects (directory)
205
223
--outputTestPath [OUTPUTTESTPATH] Path to generated test projects (directory)
206
-
--disableCodingRules Disable ATC-Coding-Rules
207
-
--removeNamespaceGroupSeparatorInGlobalUsings Remove space between namespace groups in GlobalUsing.cs
208
224
```
209
225
210
226
#### Command **options-file**
@@ -225,27 +241,146 @@ COMMANDS:
225
241
validate Validate the options file 'ApiGeneratorOptions.json'
226
242
```
227
243
244
+
> **Note:** All values from the options-file will be overriden if pressent from the CLI options.
245
+
>
246
+
> **Example:** If the usePartialClassForContracts=false in the options-file and the CLI `--usePartialClassForContracts` options set, then the usePartialClassForContracts is true.
> -[[apiGroupName]]: A placeholder replaced by the API group name during code generation. This allows grouping files dynamically based on your API structure.
369
+
> -[Project-root]: The root directory of your project where the generated files will be placed.
370
+
371
+
By using these options, you can effectively organize generated files into meaningful folder structures, ensuring clarity and scalability in your project layout.
372
+
373
+
#### Other options explained
374
+
375
+
The `projectSuffixName` extend `projectName` like the example:
0 commit comments