API: Support versioned frontend clients (#106545)

* Update the generator to include version

* Add versioned APIs

* Update imports

* Prettier
This commit is contained in:
Alex Khomenko
2025-06-13 13:24:37 +03:00
committed by GitHub
parent 3e3fa18118
commit 6a11d462cb
92 changed files with 157 additions and 143 deletions
@@ -1,5 +1,5 @@
'{{apiPathPrefix}}/{{groupName}}/endpoints.gen.ts': {
apiFile: '{{apiPathPrefix}}/{{groupName}}/baseAPI.ts',
'{{apiPathPrefix}}/{{groupName}}/{{version}}/endpoints.gen.ts': {
apiFile: '{{apiPathPrefix}}/{{groupName}}/{{version}}/baseAPI.ts',
schemaFile: '../data/openapi/{{group}}-{{version}}.json',
{{#if endpoints}}
filterEndpoints: [{{{formatEndpoints endpoints}}}],