Add pagination to Elfsquad Data connector (#1520)
* Added orderby parameter * Added orderby parameter * feat: add x-ms-pageable extension * feat: add updatenextlink policy instance * refactor: whitespace refactoring * Update apiProperties.json Co-authored-by: Johannes Heesterman <johannes@elfsquad.io> Co-authored-by: johannesheesterman <heestermanj@gmail.com>
This commit is contained in:
Родитель
96530a4f0b
Коммит
c84dca05dc
|
@ -215,6 +215,12 @@
|
|||
"value-path": "schema"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@odata.nextLink": {
|
||||
"description": "Link to get next page of results",
|
||||
"type": "string",
|
||||
"x-ms-summary": "Next link",
|
||||
"x-ms-visibility": "internal"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -222,6 +228,9 @@
|
|||
},
|
||||
"summary": "Get entities",
|
||||
"description": "Get entities",
|
||||
"x-ms-pageable": {
|
||||
"nextLinkName": "@odata.nextLink"
|
||||
},
|
||||
"operationId": "get_entities",
|
||||
"parameters": [
|
||||
{
|
||||
|
@ -583,4 +592,4 @@
|
|||
}
|
||||
],
|
||||
"tags": []
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,36 +1,50 @@
|
|||
{
|
||||
"properties": {
|
||||
"capabilities": [],
|
||||
"connectionParameters": {
|
||||
"token": {
|
||||
"oAuthSettings": {
|
||||
"clientId": "68CC9851-4AA0-459A-98FB-07742B384987",
|
||||
"customParameters": {
|
||||
"authorizationUrl": {
|
||||
"value": "https://login.elfsquad.io/connect/authorize"
|
||||
},
|
||||
"refreshUrl": {
|
||||
"value": "https://login.elfsquad.io/connect/token"
|
||||
},
|
||||
"tokenUrl": {
|
||||
"value": "https://login.elfsquad.io/connect/token"
|
||||
}
|
||||
"properties":{
|
||||
"capabilities":[
|
||||
|
||||
],
|
||||
"connectionParameters":{
|
||||
"token":{
|
||||
"oAuthSettings":{
|
||||
"clientId":"<CLIENT-ID>",
|
||||
"customParameters":{
|
||||
"authorizationUrl":{
|
||||
"value":"https://login.elfsquad.io/connect/authorize"
|
||||
},
|
||||
"refreshUrl":{
|
||||
"value":"https://login.elfsquad.io/connect/token"
|
||||
},
|
||||
"tokenUrl":{
|
||||
"value":"https://login.elfsquad.io/connect/token"
|
||||
}
|
||||
},
|
||||
"identityProvider":"oauth2",
|
||||
"properties":{
|
||||
"IsFirstParty":"False"
|
||||
},
|
||||
"redirectMode":"Global",
|
||||
"redirectUrl":"https://global.consent.azure-apim.net/redirect",
|
||||
"scopes":[
|
||||
"openid profile offline_access Elfskot.Api"
|
||||
]
|
||||
},
|
||||
"identityProvider": "oauth2",
|
||||
"properties": {
|
||||
"IsFirstParty": "False"
|
||||
},
|
||||
"redirectMode": "Global",
|
||||
"redirectUrl": "https://global.consent.azure-apim.net/redirect",
|
||||
"scopes": [
|
||||
"openid profile offline_access Elfskot.Api"
|
||||
]
|
||||
},
|
||||
"type": "oauthSetting"
|
||||
}
|
||||
"type":"oauthSetting"
|
||||
}
|
||||
},
|
||||
"publisher": "Elfsquad B.V.",
|
||||
"stackOwner": "Elfsquad B.V.",
|
||||
"iconBrandColor": "#0088da"
|
||||
}
|
||||
}
|
||||
"policyTemplateInstances":[
|
||||
{
|
||||
"title":"Updates next link to make pagination work",
|
||||
"templateId":"updatenextlink",
|
||||
"parameters":{
|
||||
"x-ms-apimTemplateParameter.nextLinkPropertyName":"@odata.nextLink",
|
||||
"x-ms-apimTemplate-operationName":[
|
||||
"get_entities"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"publisher":"Elfsquad B.V.",
|
||||
"stackOwner":"Elfsquad B.V.",
|
||||
"iconBrandColor":"#0088da"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче