Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Pagination in API P...
 
Notifications
Clear all

Pagination in API Projeqtor ?

4 Posts
2 Users
0 Reactions
992 Views
(@zeinebb)
Posts: 6
Active Member
Topic starter
 
[#9459]

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


 
Posted : 22 May 2024 17H17
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 22 May 2024 21H52
(@zeinebb)
Posts: 6
Active Member
Topic starter
 

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 
 


 
Posted : 23 May 2024 12H16
babynus
(@babynus)
Posts: 14966
Main Contributor 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


 
Posted : 25 May 2024 11H43
Share:

Scroll to Top