From bef2233e2b84559e17388bb31bddc63aed2e100e Mon Sep 17 00:00:00 2001 From: Leandro Costa Date: Wed, 8 Nov 2023 20:56:22 -0300 Subject: [PATCH] feat: add method PATCH --- src/lhisp-oauth-client.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lhisp-oauth-client.ts b/src/lhisp-oauth-client.ts index 8c63e33..a8920e1 100644 --- a/src/lhisp-oauth-client.ts +++ b/src/lhisp-oauth-client.ts @@ -191,6 +191,15 @@ export class LhispOauthClient { }); } + async patch({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) { + return this.executarRequest({ + method: "PATCH", + path, + data, + contentType, + }); + } + async post({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) { return this.executarRequest({ method: "POST",