From 19720ef16897b29a4e05c64383cabf3cd16bfdae Mon Sep 17 00:00:00 2001 From: Torbjorn van Heeswijck Date: Mon, 27 Nov 2023 20:56:14 +1030 Subject: [PATCH] bugfix: request paths need 'rest' and capital V --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 6ff8045..d55cacb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -114,7 +114,7 @@ class ServerlessMagento implements ServerlessPlugin { const serviceName = this.service.service; - await this.axiosInstance.put(`/v1/service/registrations`, { + await this.axiosInstance.put(`/rest/V1/service/registrations`, { app_name: serviceName, display_name: displayName, description: description || this.getServiceDescription(), @@ -130,7 +130,7 @@ class ServerlessMagento implements ServerlessPlugin { */ private async deregisterService() { await this.axiosInstance.delete( - `/v1/service/registrations/${this.service.service}`, + `/rest/V1/service/registrations/${this.service.service}`, ); this.log.success(