|
|
|
@@ -176,6 +176,77 @@ export class UserTripService { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Removes the UserTrip resource. |
|
|
|
* Removes the UserTrip resource. |
|
|
|
* @param id UserTrip identifier |
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. |
|
|
|
* @param reportProgress flag to report request and response progress. |
|
|
|
*/ |
|
|
|
public userTripsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; |
|
|
|
public userTripsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; |
|
|
|
public userTripsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; |
|
|
|
public userTripsIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { |
|
|
|
if (id === null || id === undefined) { |
|
|
|
throw new Error('Required parameter id was null or undefined when calling userTripsIdDelete.'); |
|
|
|
} |
|
|
|
|
|
|
|
let localVarHeaders = this.defaultHeaders; |
|
|
|
|
|
|
|
let localVarCredential: string | undefined; |
|
|
|
// authentication (JWT) required |
|
|
|
localVarCredential = this.configuration.lookupCredential('JWT'); |
|
|
|
if (localVarCredential) { |
|
|
|
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); |
|
|
|
} |
|
|
|
|
|
|
|
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; |
|
|
|
if (localVarHttpHeaderAcceptSelected === undefined) { |
|
|
|
// to determine the Accept header |
|
|
|
const httpHeaderAccepts: string[] = [ |
|
|
|
]; |
|
|
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); |
|
|
|
} |
|
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) { |
|
|
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
|
|
|
} |
|
|
|
|
|
|
|
let localVarHttpContext: HttpContext | undefined = options && options.context; |
|
|
|
if (localVarHttpContext === undefined) { |
|
|
|
localVarHttpContext = new HttpContext(); |
|
|
|
} |
|
|
|
|
|
|
|
let localVarTransferCache: boolean | undefined = options && options.transferCache; |
|
|
|
if (localVarTransferCache === undefined) { |
|
|
|
localVarTransferCache = true; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json'; |
|
|
|
if (localVarHttpHeaderAcceptSelected) { |
|
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
|
|
|
responseType_ = 'text'; |
|
|
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
|
|
|
responseType_ = 'json'; |
|
|
|
} else { |
|
|
|
responseType_ = 'blob'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
let localVarPath = `/api/user_trips/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; |
|
|
|
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, |
|
|
|
{ |
|
|
|
context: localVarHttpContext, |
|
|
|
responseType: <any>responseType_, |
|
|
|
withCredentials: this.configuration.withCredentials, |
|
|
|
headers: localVarHeaders, |
|
|
|
observe: observe, |
|
|
|
transferCache: localVarTransferCache, |
|
|
|
reportProgress: reportProgress |
|
|
|
} |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Retrieves a UserTrip resource. |
|
|
|
* Retrieves a UserTrip resource. |
|
|
|
|