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:
Stan van Rooy 2022-04-27 02:17:36 +02:00 коммит произвёл GitHub
Родитель 96530a4f0b
Коммит c84dca05dc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 57 добавлений и 34 удалений

Просмотреть файл

@ -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"
}
}