QuizzifyTech

Bug library › API testing

API testing · Orders API

Last page of orders still gives a “next” link to page 6

P3 · MinorIntermediateOrders API

Want to find it yourself first? This page gives away the answer. Play this bug on a fake app screen and see if you can spot it in three tries.

Spot this bug

The clue

Which page is this, and how many are there?

Steps to reproduce

  1. Send GET /api/orders?page=5 (the last page)
  2. Read the "next" field

Expected result

"next": null on the last page

Actual result

"next": "/api/orders?page=6"

Why it matters

This is a minor (P3) bug. It does not stop anyone, but it looks careless and makes people trust the product less. It is usually fixed in a normal sprint.

Testing tip

Apps follow “next” until it is empty. A next link that never ends causes endless loading or empty pages.

How to find bugs like this

API bugs live in the JSON between the app and the server: wrong records returned, fields that leak private data, bad status codes and limits that are not enforced. When you test, try these checks:

  • Read the whole response body, not only the status code.
  • Ask for other users’ records on purpose.
  • Look for fields that should never leave the server.
  • Send values at and past every limit.

More API testing bugs

See all 158 bugs