Skip to content

Commit

Permalink
Merge pull request #1583 from openmeterio/fix-notification-api-spec
Browse files Browse the repository at this point in the history
fix(api): update endpoints for Notification API
  • Loading branch information
chrisgacsal authored Sep 27, 2024
2 parents 44787e4 + d1b7843 commit d64ea4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/spec/src/notification/channel.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ interface Channels {
@put
@operationId("updateNotificationChannel")
@summary("Update a notification channel")
update(@body request: ChannelCreateRequest): {
update(@path channelId: ULID, @body request: ChannelCreateRequest): {
@statusCode _: 200;
@body body: Channel;
} | OpenMeter.CommonErrors;
Expand Down
3 changes: 2 additions & 1 deletion api/spec/src/notification/rule.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ interface Rules {
@put
@operationId("updateNotificationRule")
@summary("Update a notification rule")
update(@body request: RuleCreateRequest): {
update(@path ruleId: ULID, @body request: RuleCreateRequest): {
@statusCode _: 200;
@body body: Rule;
} | OpenMeter.CommonErrors;
Expand Down Expand Up @@ -311,5 +311,6 @@ interface Rules {
@operationId("testNotificationRule")
test(@path ruleId: ULID): {
@statusCode _: 201;
@body body: Event;
} | OpenMeter.NotFoundError | OpenMeter.CommonErrors;
}

0 comments on commit d64ea4e

Please sign in to comment.