-
Notifications
You must be signed in to change notification settings - Fork 420
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
Create pagination doc #441
Conversation
Important fields explained: | ||
- `endpointUrl` : Standard context here. The url that you intend to call. | ||
- `callbackContextTemplate` : This is the set of parameters that we will need to call this API again. Generally, this will be derived from the response of the previous call. It's supposed to be a set of key-value pairs. | ||
- `callbackRequiredTemplate` : This is basically a boolean flag which identifies whether further call to API is needed. It does so based on the response of the previous call. |
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.
Add that recalling the API needs to be handled by the client. In our case it will be task editor UI.
Depending on the kind of pagination supported by the underlying API, the logic to determine the value of "callbackRequiredTemplate" can be anything. | ||
We expect both "callbackContextTemplate" and "callbackRequiredTemplate" to be provided as mustache templates. Examples follow: | ||
|
||
### Sample Data Source |
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.
Add examples of how 2 well know formats can be supported?
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.
I will just add the link of the doc which explains this. Explaining that here would be redundant I think.
``` | ||
{ | ||
"endpointUrl": “someUrl” | ||
"callbackContextTemplate": "" //set of parameters that need to be used in the next call |
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.
remove comments as you are explaining these fields down below
@@ -0,0 +1,41 @@ | |||
# Pagination | |||
The support of pagination is data sources is given by following template: |
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.
typo - … pagination in data source bindings ...
### Sample Data Source | ||
``` | ||
{ | ||
"endpointUrl": "{{endpoint.url}}/{{project}}/_apis/****/****?&$top=500&continuationToken={{{continuationToken}}}", |
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.
give a real world example here.
also, have reference to some tasks that you have edited to support pagination from here.
No description provided.