QuizzifyTech

Bug library › API testing

API testing · Orders API

Orders API ignores limit=10 and returns 12 items

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

Read the query string, then count what came back.

Steps to reproduce

  1. Send GET /api/orders?page=2&limit=10
  2. Count the items in the response

Expected result

10 items on page 2

Actual result

12 items, so some orders will repeat or be skipped across pages

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

Test pagination with the first, middle and last page. Check that items never repeat or go missing between 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