Forum

Pagination in API P...
 
Notifications
Retirer tout

Pagination in API Projeqtor ?

4 Posts
2 Utilisateurs
0 Reactions
965 Vu
(@zeinebb)
Posts: 6
Active Member
Début du sujet
 
[#9459]

Is there pagination in the API Projeqtor for the get ? The response time is currently very long. in .net


 
Posté : 22/05/2024 5:17 pm
(@babynus)
Posts: 14952
Membre Admin
 

No, there is not dafault pagination in the API.
It is on your side to request the API so that it may not return too must data.


 
Posté : 22/05/2024 9:52 pm
(@zeinebb)
Posts: 6
Active Member
Début du sujet
 

I actually want to get all the tickets, so I'm going to use the '../projeqtor/api/ticket/all' endpoint. However, it returns too much data. How can I request the API in a way that avoids returning an excessive amount of data like pagination or make it take less time as it is in projeqtor it self ?
                HttpResponseMessage response = await _client.GetAsync(apiUrlProjeqtor); // here where it take a lot of time 
 


 
Posté : 23/05/2024 12:16 pm
(@babynus)
Posts: 14952
Membre Admin
 

As previously answered, you must manage the pagination on your side.
For instance use the search option to limit the query.
Example :
search/id100 and id<=200
And so on


 
Posté : 25/05/2024 11:43 am
Share:
Retour en haut