-
Notifications
You must be signed in to change notification settings - Fork 4
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
Updated message spec and related endpoints #270
base: main
Are you sure you want to change the base?
Conversation
sacOO7
commented
Jan 21, 2025
•
edited
Loading
edited
- Updated message spec and related endpoints
- Related ably-java PR [ECO-5193] Support message edits and deletes ably-java#1059
1d76f98
to
9b04985
Compare
a948cc6
to
a5baa77
Compare
cc5a3dc
to
19d3a9d
Compare
@@ -580,7 +574,7 @@ h3(#rest-updating-messages). Updating Messages | |||
h4(#rest-updating-messages-request). Request | |||
|
|||
Below is the full REST payload format for the endpoint. The @description@, @headers@ and both @metadata@ keys are optional. | |||
|
|||
Note that outer @metadata@ is of type map<string, string>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that outer @metadata@ is of type map<string, string>. | |
Note that the root level @metadata@ field is of type map<string, string>. |
@@ -518,7 +512,7 @@ h4(#rest-sending-messages-request-v1). Corresponding Realtime Event V1 @(depreca | |||
h4(#rest-sending-messages-request-v2). Request V2 | |||
|
|||
Below is the full REST payload format for the V2 endpoint. The @metadata@ and @headers@ keys are optional. | |||
|
|||
Note that @metadata@ is of type map<string, any> or jsonObject. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need to specify jsonObject
here - map<string, any>
covers everything?
"extras": { | ||
"headers": { | ||
"baz": "qux" | ||
}, | ||
} | ||
"createdAt": 1726232498871, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The timestamp here should match that in the serial
.
"extras": { | ||
"headers": { | ||
"baz": "qux" | ||
} | ||
} | ||
"serial": "01726232498871-001@abcdefghij:001", | ||
"version": "01726585978590-001@abcdefghij:001" | ||
"serial": "01726585978590-001@abcdefghij:001", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The createdAt
should match the timestamp in the serial.