Race condition when listing devices

Hi @ngrilly,

But it looks there is a race condition due to the design of the pagination mechanism, with the page field:

Actually what you are describing is expected behavior. The API calls are independent of each other and when you perform a paged API call you are asking for a paged view of the current DB content and it is not depended on previous API call.

  • List of devices becomes 1, 2, 3, 4, 6, 7, 8, 9, 10, means
    • GET /devices?page=1&per_page=5 = 1,2,3,4,6
    • GET /devices?page=2&per_page=5 = 7,8,9,10

per_page works as a limit., that is a maximum number of results per page. This could be clarified in the API docs.