-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move api path prefixes into publisher
This commit refactors the logic used when building API URLs to query. The original "bind path"/path-prefix logic would be added inside a Rest client whenever a request was prepared. However, to use Confluence's v2 API, this prefix varies (instead of `rest/api`, it is `api/v2`). This extension needs to be able to perform a mixed set of API calls, since both a series of v1/v2 APIs are available, select v1 deprecated APIs will no longer be available in the upcoming months (potential) and certain v1 active APIs are still required for some actions. To support various API paths, responsibility is now being placed inside the publisher when forming requests. The REST client class will assume the full path is provided via the URL configuration and the provided path value. Signed-off-by: James Knight <james.d.knight@live.com>
- Loading branch information
Showing
4 changed files
with
48 additions
and
43 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
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