-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow filtering service endpoints with
- Loading branch information
Showing
10 changed files
with
179 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@hey-api/openapi-ts': minor | ||
--- | ||
|
||
feat: allow filtering service endpoints with `services.filter` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/openapi-ts/test/__snapshots__/test/generated/v3_services_filter/index.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
export * from './services.gen'; |
61 changes: 61 additions & 0 deletions
61
...ages/openapi-ts/test/__snapshots__/test/generated/v3_services_filter/services.gen.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
|
||
import type { CancelablePromise } from './core/CancelablePromise'; | ||
import { OpenAPI } from './core/OpenAPI'; | ||
import { request as __request } from './core/request'; | ||
|
||
/** | ||
* @throws ApiError | ||
*/ | ||
export const getCallWithoutParametersAndResponse = (): CancelablePromise<void> => { return __request(OpenAPI, { | ||
method: 'GET', | ||
url: '/api/v{api-version}/simple' | ||
}); }; | ||
|
||
/** | ||
* @throws ApiError | ||
*/ | ||
export const putCallWithoutParametersAndResponse = (): CancelablePromise<void> => { return __request(OpenAPI, { | ||
method: 'PUT', | ||
url: '/api/v{api-version}/simple' | ||
}); }; | ||
|
||
/** | ||
* @throws ApiError | ||
*/ | ||
export const postCallWithoutParametersAndResponse = (): CancelablePromise<void> => { return __request(OpenAPI, { | ||
method: 'POST', | ||
url: '/api/v{api-version}/simple' | ||
}); }; | ||
|
||
/** | ||
* @throws ApiError | ||
*/ | ||
export const deleteCallWithoutParametersAndResponse = (): CancelablePromise<void> => { return __request(OpenAPI, { | ||
method: 'DELETE', | ||
url: '/api/v{api-version}/simple' | ||
}); }; | ||
|
||
/** | ||
* @throws ApiError | ||
*/ | ||
export const optionsCallWithoutParametersAndResponse = (): CancelablePromise<void> => { return __request(OpenAPI, { | ||
method: 'OPTIONS', | ||
url: '/api/v{api-version}/simple' | ||
}); }; | ||
|
||
/** | ||
* @throws ApiError | ||
*/ | ||
export const headCallWithoutParametersAndResponse = (): CancelablePromise<void> => { return __request(OpenAPI, { | ||
method: 'HEAD', | ||
url: '/api/v{api-version}/simple' | ||
}); }; | ||
|
||
/** | ||
* @throws ApiError | ||
*/ | ||
export const patchCallWithoutParametersAndResponse = (): CancelablePromise<void> => { return __request(OpenAPI, { | ||
method: 'PATCH', | ||
url: '/api/v{api-version}/simple' | ||
}); }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters