Actions
Feature #1350
closedAPI: Pagination in an extra array
Start date:
2020-09-28
Estimated time:
Description
Right now the pagination values are in the same array as the results. Add a new array so the first array contains the results and the pagination values are in the second array.
E.g:
[
[
{
"@context":"https://raw.githubusercontent.com/LinkedPasts/linked-places/master/linkedplaces-context-v1.jsonld",
"features":[
{
"@id":"http://127.0.0.1:5000/entity/3250",
"crmClass":"crm:E8_Acquisition",
"description":[
{
"value":"This house was bought by Baron Mihajlo Nikolić de Rudna (1841-1916), a landowner and house owner in Vienna. The building still exists."
}
],
"geometry":{
"geometries":[
],
"type":"GeometryCollection"
},
"properties":{
"title":"Baron Mihailo Nikolić de Rudna bought the house in Belvederegasse"
},
"relations":[
{
"label":"Change of Property",
"relationTo":"http://127.0.0.1:5000/api/0.1/entity/28",
"relationType":"crm:P2_has_type"
},
{
"label":"Location of House of Baron Mihajlo Nikolić de Rudna",
"relationTo":"http://127.0.0.1:5000/api/0.1/entity/3188",
"relationType":"crm:P7_took_place_at"
},
{
"label":"Nikolić de Rudna Mihajlo (1841-1916)",
"relationTo":"http://127.0.0.1:5000/api/0.1/entity/1541",
"relationType":"crm:P11_had_participant"
}
],
"type":"Feature",
"types":[
{
"hierarchy":"Event",
"identifier":"http://127.0.0.1:5000/api/0.1/entity/28",
"label":"Change of Property"
}
]
}
],
"type":"FeatureCollection"
},
],
[
{
"entities":9,
"entity_per_page":20,
"index":[
{
"page":1,
"start_id":3250
}
],
"total_pages":1
}
]
]
Updated by Bernhard Koschiček-Krombholz about 4 years ago
- Status changed from New to Closed
Updated by Alexander Watzinger about 4 years ago
- Subject changed from API: Pagination should be in an extra array to API: Pagination in an extra array
Updated by Alexander Watzinger almost 4 years ago
- Target version changed from 6.0.0 to 5.6.0
Actions