File tree Expand file tree Collapse file tree 4 files changed +14
-11
lines changed
libs/wire-api/src/Wire/API/Routes/Public Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Original file line number Diff line number Diff line change
1
+ Add pagination docs to `POST /list-connections`
Original file line number Diff line number Diff line change @@ -601,6 +601,7 @@ type ConnectionAPI =
601
601
:<|> Named
602
602
" list-connections"
603
603
( Summary " List the connections to other users, including remote users"
604
+ :> Description PaginationDocs
604
605
:> ZUser
605
606
:> " list-connections"
606
607
:> ReqBody '[JSON ] ListConnectionsRequestPaginated
Original file line number Diff line number Diff line change @@ -225,17 +225,7 @@ type ConversationAPI =
225
225
:<|> Named
226
226
" list-conversation-ids"
227
227
( Summary " Get all conversation IDs."
228
- :> Description
229
- " The IDs returned by this endpoint are paginated. To\
230
- \ get the first page, make a call with the `paging_state` field set to\
231
- \ `null` (or omitted). Whenever the `has_more` field of the response is\
232
- \ set to `true`, more results are available, and they can be obtained\
233
- \ by calling the endpoint again, but this time passing the value of\
234
- \ `paging_state` returned by the previous call. One can continue in\
235
- \ this fashion until all results are returned, which is indicated by\
236
- \ `has_more` being `false`. Note that `paging_state` should be\
237
- \ considered an opaque token. It should not be inspected, or stored, or\
238
- \ reused across multiple unrelated invokations of the endpoint."
228
+ :> Description PaginationDocs
239
229
:> ZLocalUser
240
230
:> " conversations"
241
231
:> " list-ids"
Original file line number Diff line number Diff line change @@ -77,3 +77,14 @@ instance
77
77
fromUnion (Z (I () )) = Unchanged
78
78
fromUnion (S (Z (I a))) = Updated a
79
79
fromUnion (S (S x)) = case x of
80
+
81
+ type PaginationDocs =
82
+ " The IDs returned by this endpoint are paginated. To get the first page, make\
83
+ \ a call with the `paging_state` field set to `null` (or omitted). Whenever the\
84
+ \ `has_more` field of the response is set to `true`, more results are available,\
85
+ \ and they can be obtained by calling the endpoint again, but this time passing\
86
+ \ the value of `paging_state` returned by the previous call. One can continue in\
87
+ \ this fashion until all results are returned, which is indicated by `has_more`\
88
+ \ being `false`. Note that `paging_state` should be considered an opaque token.\
89
+ \ It should not be inspected, or stored, or reused across multiple unrelated\
90
+ \ invocations of the endpoint."
You can’t perform that action at this time.
0 commit comments