refactor: Use new ApiClient and deprecate old GitLabClient
- Step 1: refactor: Use new ApiClient and deprecate old G... (!187 - closed)
- Step 2: refactor: Use new ApiClient for code suggestions (!188 - closed)
Description
- This new client uses objects instead of methods to represent the endpoints
- This is needed to unify the GitLab Workflow Extension
Files of interest:
-
endpoints.ts
this encapsulates all of theDeprecatedGitLabClient
endpoints and shows how theendpointBuilder
works. -
DeprecatedGitLabClient.ts
which is the oldGitLabClient
that now accepts the genericApiClient
. Look at the implementation of it's methods for how the endpoint objects can be easily used with theDefaultGitLabClient
that implements theApiClient
interface. - Look at the next MR for how this plays out with the
code_suggestions/tokens
endpoint.
Screenshots
TBD
Edited by Paul Slaughter