From 0d747795d3096c3f167dbbbe93cec90d1edfdd45 Mon Sep 17 00:00:00 2001 From: Vinh Thieu Date: Wed, 7 Apr 2021 14:49:26 +0700 Subject: [PATCH] added endpoint update resource --- src/resources/clients.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/resources/clients.ts b/src/resources/clients.ts index 202b450f..dfa4f8b0 100644 --- a/src/resources/clients.ts +++ b/src/resources/clients.ts @@ -488,6 +488,16 @@ export class Clients extends Resource<{realm?: string}> { urlParamKeys: ['id'], }); + public updateResource = this.makeUpdateRequest< + {id: string; resourceId: string;}, + ResourceRepresentation, + void + >({ + method: 'PUT', + path: '/{id}/authz/resource-server/resource/{resourceId}', + urlParamKeys: ['id', 'resourceId'], + }); + public delResource = this.makeRequest< {id: string, resourceId: string}, void