Skip to content

Commit

Permalink
Merge pull request #230 from aligent/feature/MICRO-26_include-rest-in…
Browse files Browse the repository at this point in the history
…-request-path

bugfix: request paths need 'rest' and capital V
  • Loading branch information
tvhees authored Nov 28, 2023
2 parents 2961fdd + 19720ef commit 9ddf20e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(
Expand Down

0 comments on commit 9ddf20e

Please sign in to comment.