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
{{ message }}
Repository navigation
Commit 3fe558b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(typescript-angular): add withHttpResource option for signal-based GET resources
Opt-in, Angular 20+. Every GET operation without a request body gets a
<operation>Resource method next to its Observable method, returning an
Angular httpResource (httpResource.text or httpResource.blob when the
response is text or binary). Writes keep only their Observable method.
The query, header and credential code moves into a partial shared by
both paths, so the output of every existing configuration is unchanged.
Adds a sample build inside typescript-angular-v22-provided-in-root with
an HttpTestingController spec.
Copy file name to clipboardExpand all lines: docs/generators/typescript-angular.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
56
56
|useDotNotationForFormObjects|Use parameter-prefixed dot notation for exploded form query objects instead of the OpenAPI standard unprefixed property names. Enable only for servers requiring this convention.||false|
57
57
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.||false|
58
58
|useSquareBracketsInArrayNames|Setting this property to true will add brackets to array attribute names, e.g. my_values[].||false|
59
+
|withHttpResource|Setting this property to true will generate, next to the Observable method of each GET operation without a request body, a method returning a signal-based Angular httpResource. Requires Angular v20+.||false|
59
60
|withInterfaces|Setting this property to true will generate interfaces next to the default class implementations.||false|
60
61
|zonejsVersion|The version of zone.js compatible with Angular (see ngVersion option).||null|
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java
"Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.",
0 commit comments