Skip to content

Commit

Permalink
fix: generate endpoint to service with '/api_v3/' as a prefix.
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

before:
The service api provided by the application included `/api_v3/` when provided
```
"https://www.kaltura.com/api_v3/"
```

after:
The service api provided by the application shouldn't include `/api_v3/` when provided
```
"https://www.kaltura.com"
```
  • Loading branch information
eransakal committed Nov 26, 2017
1 parent 583de88 commit fdaf513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kaltura-clients/kaltura-http-client-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export abstract class KalturaHttpClientBase extends KalturaClientBase {
protected abstract _createCancelableAction(data: { endpoint: string, headers: any, body: {} }): CancelableAction;

private _createEndpoint(parameters: any): string {
let endpoint = `${this.endpointUrl}/service/${parameters.service}`;
let endpoint = `${this.endpointUrl}/api_v3/service/${parameters.service}`;
if (parameters.action) {
endpoint = `${endpoint}/action/${parameters.action}`;
}
Expand Down

0 comments on commit fdaf513

Please sign in to comment.