-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support
basePath
in options-per-service for openapi generator…
… - Option 2 (#5247) * chore: append basePath to path pattern in openapi generator * chore: switch to using removeSlashes from util * chore: add additional test * chore: check-public-api change * Changes from lint:fix * chore: update test * chore: adjust all tests * chore: fix codeQL warning * Changes from lint:fix * chore: add changeset * chore: cleanup tests * feat: extend openapi request builder for basePath * chore: introduce setBasePath * feat: introduce _defaultBasePath to the generated files * chore: fix order of parameters with intro of basepath * chore: fix tests * chore: add setBasePath * chore: fix failing e2e test * Changes from lint:fix * chore: cleanup path * Changes from lint:fix * chore: adjust test * Changes from lint:fix * chore: switch to using undefined for default basePath value * chore: cleanup test * chore: update changeset * chore: adjust changeset * chore: fix unit test * chore:cleanup * chore: fix test * chore: cleanup changesets * fix: integration test * chore: fix path * chore:fix path * chore: remove dead code * chore: review comment * Update .changeset/chilled-flowers-hide.md Co-authored-by: Deeksha Sinha <[email protected]> * Update packages/openapi/src/openapi-request-builder.ts Co-authored-by: Deeksha Sinha <[email protected]> * chore: address review comments * chore: revert update to removeSlashes utility * Changes from lint:fix * chore: address review comments * chore: tests fix * chore: adjust tests * chore: address review comments * Changes from lint:fix * fix: begin all paths using '/' * chore: address review comments * Update .changeset/chilled-flowers-hide.md Co-authored-by: Deeksha Sinha <[email protected]> * Update .changeset/chilled-flowers-freeze.md Co-authored-by: Deeksha Sinha <[email protected]> * Update packages/util/src/remove-slashes.spec.ts Co-authored-by: Deeksha Sinha <[email protected]> * Update packages/util/src/remove-slashes.spec.ts Co-authored-by: Deeksha Sinha <[email protected]> * chore: address review comments * Changes from lint:fix * chore: add review changes * chore: address review comments * chore:address review comments * chore: address review comments * chore: release note fix --------- Co-authored-by: cloud-sdk-js <[email protected]> Co-authored-by: Junjie Tang <[email protected]> Co-authored-by: Deeksha Sinha <[email protected]>
- Loading branch information
1 parent
78703e6
commit 1f7b585
Showing
54 changed files
with
561 additions
and
215 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 @@ | ||
--- | ||
'@sap-cloud-sdk/openapi': minor | ||
--- | ||
|
||
[New Functionality] Introduce `setBasePath()` method on the OpenAPI request builder, allowing a custom base path URL to be set for a single request. This base path is prepended to the API path parameter for that single request. |
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,7 @@ | ||
--- | ||
'@sap-cloud-sdk/openapi-generator': minor | ||
'@sap-cloud-sdk/openapi': minor | ||
'@sap-cloud-sdk/util': minor | ||
--- | ||
|
||
[New Functionality] Add `basePath` option in the `options-per-service.json` file in the OpenAPI generator. This option prepends the base URL path to the API path parameter for every request. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.