Deployment Timing
Target deployment date: Wednesday, 23 March 2022 via 1.39.0-wmf.4.
Functionality being requested
In the rest_v1/page/talk/, add comment ids (source: T273292#6851354) to each reply item.
The Beta shows that each reply URL contains the information below:
data-mw-comment='{"type":"comment","level":3,"id":"c-RYasmeen_(WMF)-2022-01-04T16:45:00.000Z-RYasmeen_(WMF)-2022-01-04T16:40:00.000Z","replies":["c-73.48.132.36-2022-02-08T18:31:00.000Z-RYasmeen_(WMF)-2022-01-04T16:45:00.000Z"],"timestamp":"2022-01-04T16:45:00.000Z","author":"RYasmeen (WMF)"}'
which the id may be used for the inline reply API.
The commentid comes from the API below:
https://en.wikipedia.beta.wmflabs.org/w/api.php?action=discussiontoolspageinfo&format=json&formatversion=2&uselang=en&page=Talk:Cats&oldid=536711
and the commentid should be added to the page/talk API.
"id": 4, "replies": [ { "sha": "7b4e356696ed4bf3b59afabe0af49d872dfdb5c2350121081f7d38a0ebd3ff45", "depth": 0, "commentid": "c-RYasmeen_(WMF)-2022-01-04T16:45:00.000Z-RYasmeen_(WMF)-2022-01-04T16:40:00.000Z" "html": "Comment 1 <a href=\"./User:Cooltey\" title=\"User:Cooltey\">Cooltey</a> (<a href=\"./User_talk:Cooltey#top\" title=\"User talk:Cooltey\">talk</a>) 23:10, 21 June 2021 (UTC)" }, { "sha": "17199edbe8f832e63a860cb0cd1fdb16744d3731e64fc8ee873f6625902bcbc3", "depth": 0, "commentid": "c-RYasmeen_(WMF)-2022-01-04T16:45:00.000Z-RYasmeen_(WMF)-2022-01-04T16:40:00.000Z" "html": "Comment 2<a href=\"./User:Cooltey\" title=\"User:Cooltey\">Cooltey</a> (<a href=\"./User_talk:Cooltey#top\" title=\"User talk:Cooltey\">talk</a>) 23:13, 21 June 2021 (UTC)" } ]
Question
Not sure but should the /page/talk/ API contains other data like "replies":["c-68.195.105.122-2020-05-13T16:40:00.000Z-213.245.48.203-2020-04-08T20:26:00.000Z","c-173.76.103.59-2021-02-17T17:27:00.000Z-213.245.48.203-2020-04-08T20:26:00.000Z"],"timestamp":"2020-04-08T20:26:00.000Z"?
Reference
When submitting replies, we can use API:
action=discussiontoolsedit and use the id as commentname