Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Rule Enpoints #160

Merged
merged 4 commits into from
Mar 24, 2024
Merged

App Rule Enpoints #160

merged 4 commits into from
Mar 24, 2024

Conversation

wtfsayo
Copy link
Contributor

@wtfsayo wtfsayo commented Mar 22, 2024

Not intending to merge yet, looking for feedback on endpoints/verbs

@wtfsayo wtfsayo requested a review from plor March 22, 2024 14:43
Copy link
Contributor

@plor plor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the mix-up

return this.appsService.deleteApp(appId);
}

@Patch(':appId')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should be PUT instead.

return this.appsService.updateApp(appId, updateAppDto);
}

@Put(':appId/rule')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be POST

return this.appsService.createAppRule(appId, createAppRuleDto);
}

@Patch(':appId/rule/:ruleId')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably PUT instead.

@wtfsayo wtfsayo merged commit 430b76b into develop Mar 24, 2024
@wtfsayo wtfsayo deleted the app-rules-endpoints branch March 24, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants