Skip to content

Commit

Permalink
update swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Sep 3, 2023
1 parent babaa55 commit 391b46d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
11 changes: 7 additions & 4 deletions internal/apiproto/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2583,10 +2583,6 @@
"apns": {
"$ref": "#/definitions/ApnsPushNotification"
},
"uid": {
"type": "string",
"description": "unique identifier for push notification, used for matching in Centrifugo analytics."
},
"expire_at": {
"type": "integer",
"description": "timestamp in the future when Centrifugo should stop trying to send push notification."
Expand Down Expand Up @@ -2821,6 +2817,13 @@
},
"notification": {
"$ref": "#/definitions/PushNotification"
},
"uid": {
"type": "string",
"description": "unique identifier for push notification, used for matching in Centrifugo analytics."
},
"send_at": {
"type": "integer"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion internal/apiproto/api.swagger.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,6 @@ message PushNotification {
HmsPushNotification hms = 2;
ApnsPushNotification apns = 3;

string uid = 4; // unique identifier for push notification, used for matching in Centrifugo analytics.
int64 expire_at = 5; // timestamp in the future when Centrifugo should stop trying to send push notification.
}

Expand All @@ -1142,6 +1141,8 @@ message ApnsPushNotification {
message SendPushNotificationRequest {
PushRecipient recipient = 1;
PushNotification notification = 2;
string uid = 3; // unique identifier for push notification, used for matching in Centrifugo analytics.
int64 send_at = 4;
}

message SendPushNotificationResponse {
Expand Down
2 changes: 1 addition & 1 deletion internal/swaggerui/statik.go

Large diffs are not rendered by default.

0 comments on commit 391b46d

Please sign in to comment.