Skip to content

Commit

Permalink
Merge pull request #149 from ianmuchyri/noissue-apimethod
Browse files Browse the repository at this point in the history
NOISSUE - Update API method types for RE
  • Loading branch information
ianmuchyri authored Feb 10, 2025
2 parents c74cebd + 9ec65e6 commit 052e875
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/wicked-comics-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@absmach/magistrala-sdk": patch
---

update re api method type
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/re.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default class Rules {
token: string
): Promise<Rule> {
const options: RequestInit = {
method: "PUT",
method: "PATCH",
headers: {
"Content-Type": this.contentType,
Authorization: `Bearer ${token}`,
Expand Down Expand Up @@ -243,7 +243,7 @@ export default class Rules {
token: string
): Promise<Rule> {
const options = {
method: "PUT",
method: "POST",
headers: {
"Content-Type": this.contentType,
Authorization: `Bearer ${token}`,
Expand Down Expand Up @@ -282,7 +282,7 @@ export default class Rules {
token: string
): Promise<Rule> {
const options = {
method: "PUT",
method: "POST",
headers: {
"Content-Type": this.contentType,
Authorization: `Bearer ${token}`,
Expand Down

0 comments on commit 052e875

Please sign in to comment.