cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
439
Views
0
Helpful
0
Replies

Question about pagination

Tim Glen
Cisco Employee
Cisco Employee

Please help me understand the way pagination works.

I read the Getting Started Guide but I don’t completely understand.

https://developer.cisco.com/site/PSIRT/get-started/getting-started.gsp

I understand that the API returns a maximum of 100 entries.

I understand that there are two parameters (pageIndex & pageSize)

Ok, let’s assume I am going to query the API for the product widget and the product widget has 325 PSIRTs advisories.

Do I need to query the API four times in order to get the results?

https://api.cisco.com/security/advisories/cvrf/product?product=widget&pageIndex=1&pageSize=100

To get results 1 - 99

https://api.cisco.com/security/advisories/cvrf/product?product=widget&pageIndex=2&pageSize=100

To get results 100 - 199

https://api.cisco.com/security/advisories/cvrf/product?product=widget&pageIndex=3&pageSize=100

To get results 200 - 299

https://api.cisco.com/security/advisories/cvrf/product?product=widget&pageIndex=4&pageSize=100

To get results 300 - 325

Thank you,

Tim

0 Replies 0