Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let permissiondata = {deviceId: 1, notificationId: 10};
- permissionsDelete(permissiondata,"body").toPromise();
- public permissionsDelete(body: Permission, observe?: 'body', reportProgress?: boolean): Observable<any>;
- public permissionsDelete(body: Permission, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
- public permissionsDelete(body: Permission, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
- public permissionsDelete(body: Permission, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
- if (body === null || body === undefined) {
- throw new Error('Required parameter body was null or undefined when calling permissionsDelete.');
- }
- let headers = this.defaultHeaders;
- // authentication (basicAuth) required
- if (this.configuration.username || this.configuration.password) {
- headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));
- }
- // to determine the Accept header
- let httpHeaderAccepts: string[] = [
- 'application/json'
- ];
- const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
- if (httpHeaderAcceptSelected != undefined) {
- headers = headers.set('Accept', httpHeaderAcceptSelected);
- }
- // to determine the Content-Type header
- const consumes: string[] = [
- 'application/json'
- ];
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
- if (httpContentTypeSelected != undefined) {
- headers = headers.set('Content-Type', httpContentTypeSelected);
- }
- return this.httpClient.delete<any>(`${this.basePath}/permissions`,
- {
- withCredentials: this.configuration.withCredentials,
- headers: headers,
- observe: observe,
- reportProgress: reportProgress
- }
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement