@@ -211,8 +211,11 @@ OPTIONS:
211211 --disableCodingRules Disable ATC-Coding-Rules
212212 --useProblemDetailsAsDefaultResponseBody Use ProblemDetails as default responsen body
213213 --endpointsLocation [ENDPOINTSLOCATION] If endpoints-localtion is provided, generated files will be placed here instead of the Endpoints folder
214+ --endpointsNamespace [ENDPOINTSNAMESPACE] If endpoints-namespace is provided, generated files will be placed here instead of the Endpoints namespace
214215 --contractsLocation [CONTRACTSLOCATION] If contracts-localtion is provided, generated files will be placed here instead of the Contracts folder
216+ --contractsNamespace [CONTRACTSNAMESPACE] If contracts-namespace is provided, generated files will be placed here instead of the Contracts namespace
215217 --handlersLocation [HANDLERSLOCATION] If handlers-localtion is provided, generated files will be placed here instead of the Handlers folder
218+ --handlersNamespace [HANDLERSNAMESPACE] If handlers-namespace is provided, generated files will be placed here instead of the Handlers namespace
216219 --usePartialClassForContracts Use Partial-Class for contracts
217220 --usePartialClassForEndpoints Use Partial-Class for endpoints
218221 --removeNamespaceGroupSeparatorInGlobalUsings Remove space between namespace groups in GlobalUsing.cs
@@ -256,8 +259,11 @@ COMMANDS:
256259 "projectName" : " " ,
257260 "projectSuffixName" : " " ,
258261 "contractsLocation" : " Contracts.[[apiGroupName]]" ,
262+ "contractsNamespace" : " Contracts.[[apiGroupName]]" ,
259263 "endpointsLocation" : " Endpoints.[[apiGroupName]]" ,
264+ "endpointsNamespace" : " Endpoints.[[apiGroupName]]" ,
260265 "handlersLocation" : " Handlers.[[apiGroupName]]" ,
266+ "handlersNamespace" : " Handlers.[[apiGroupName]]" ,
261267 "usePartialClassForContracts" : false ,
262268 "usePartialClassForEndpoints" : false ,
263269 "removeNamespaceGroupSeparatorInGlobalUsings" : false ,
@@ -288,8 +294,11 @@ COMMANDS:
288294 "projectName" : " " ,
289295 "projectSuffixName" : " " ,
290296 "contractsLocation" : " Contracts.[[apiGroupName]]" ,
297+ "contractsNamespace" : " Contracts.[[apiGroupName]]" ,
291298 "endpointsLocation" : " Endpoints.[[apiGroupName]]" ,
299+ "endpointsNamespace" : " Endpoints.[[apiGroupName]]" ,
292300 "handlersLocation" : " Handlers.[[apiGroupName]]" ,
301+ "handlersNamespace" : " Handlers.[[apiGroupName]]" ,
293302 "usePartialClassForContracts" : false ,
294303 "usePartialClassForEndpoints" : false ,
295304 "removeNamespaceGroupSeparatorInGlobalUsings" : false ,
@@ -346,7 +355,7 @@ You can use specific syntax to define and customize the output file structure.
346355
347356##### Syntax
348357
349- For options like ` contractsLocation ` , ` endpointsLocation ` , and ` handlersLocation ` ,
358+ For options like ` contractsLocation ` , ` contractsNamespace ` , ` endpointsLocation ` , ` endpointsNamespace ` , ` handlersLocation ` , ` handlersNamespace ` ,
350359you can define paths using placeholders and custom directory names.
351360
352361The syntax is flexible and allows you to organize files based on grouping or specific requirements.
@@ -355,13 +364,20 @@ The syntax is flexible and allows you to organize files based on grouping or spe
355364
356365| Option-Name | Option-Value | Example-file | Generated-output |
357366| -------------| --------------| --------------| ------------------|
358- | contractsLocation | Contracts | Account.cs | [ Project-root] \Contracts\Accounts\Account.cs |
359- | contractsLocation | Contracts.[[ apiGroupName]] | Account.cs | [ Project-root] \Contracts\Accounts\Account.cs |
360- | contractsLocation | Contracts-[[ apiGroupName]] | Account.cs | [ Project-root] \Contracts\Accounts\Account.cs |
361- | contractsLocation | [[ apiGroupName]] .MyContracts | Account.cs | [ Project-root] \Accounts\MyContracts\Account.cs |
362- | contractsLocation | [[ apiGroupName]] -MyContracts | Account.cs | [ Project-root] \Accounts\MyContracts\Account.cs |
363- | contractsLocation | [[ apiGroupName]] | Account.cs | [ Project-root] \Accounts\Account.cs |
364- | contractsLocation | . | Account.cs | [ Project-root] \Account.cs |
367+ | contractsLocation | Contracts | Account.cs | [ Project-root] \Contracts\Accounts\Account.cs |
368+ | contractsLocation | Contracts.[[ apiGroupName]] | Account.cs | [ Project-root] \Contracts\Accounts\Account.cs |
369+ | contractsLocation | Contracts-[[ apiGroupName]] | Account.cs | [ Project-root] \Contracts\Accounts\Account.cs |
370+ | contractsLocation | [[ apiGroupName]] .MyContracts | Account.cs | [ Project-root] \Accounts\MyContracts\Account.cs |
371+ | contractsLocation | [[ apiGroupName]] -MyContracts | Account.cs | [ Project-root] \Accounts\MyContracts\Account.cs |
372+ | contractsLocation | [[ apiGroupName]] | Account.cs | [ Project-root] \Accounts\Account.cs |
373+ | contractsLocation | . | Account.cs | [ Project-root] \Account.cs |
374+ | contractsNamespace | Contracts | Account.cs | [ Project-root] .Contracts.Accounts.Account.cs |
375+ | contractsNamespace | Contracts.[[ apiGroupName]] | Account.cs | [ Project-root] .Contracts.Accounts.Account.cs |
376+ | contractsNamespace | Contracts-[[ apiGroupName]] | Account.cs | [ Project-root] .Contracts.Accounts.Account.cs |
377+ | contractsNamespace | [[ apiGroupName]] .MyContracts | Account.cs | [ Project-root] .Accounts.MyContracts.Account.cs |
378+ | contractsNamespace | [[ apiGroupName]] -MyContracts | Account.cs | [ Project-root] .Accounts.MyContracts.Account.cs |
379+ | contractsNamespace | [[ apiGroupName]] | Account.cs | [ Project-root] .Accounts.Account.cs |
380+ | contractsNamespace | . | Account.cs | [ Project-root] .Account.cs |
365381
366382> Placeholder Explanation:
367383>
0 commit comments