API Maker

The backend engine for the AI era

Playlist · 5 videos · 33 min

Testing and debugging APIs

The API Testing page, test cases with mocks and coverage, and debugging from a failing call to the line that broke.

The videos of this playlist

  1. 5:451. API Testing

    API Testing in the Panel: Call, Debug, Export and Share Any API

    One page to call any API of your account, change its code and run it, read its logs, and take the request away as code. A tour of the API Testing page: twelve categories, query params and the model of an answer, rows generated from the schema, the answer as a table you can edit and export, keyboard shortcuts, logs, cURL and request states. 6 min 11 chapters Episode 36
  2. 5:482. Test cases

    Test Cases with Mocks and Code Coverage for Your Custom APIs

    A custom API that works today can break tomorrow with one character. Give Cart Quote four tests with mocks instead of a database, watch one run find a real bug before a customer does, fix it, run them all, see every line the tests ran, and run the same tests with npm run test in your CI. 6 min 12 chapters Episode 37
  3. 7:043. Test cases in depth

    Mocks That Fail, Count and Compute : Test Cases in 8 Languages and in CI

    The bugs that reach production hide in the paths nobody tests : a database that is busy once, a retry never run. Give Stock Check a mock that fails its call with a 503 for one call, watch the retry run and every line of it covered, answer calls with functions of the test in eight languages, and run the tests of your commit with npm run test, from your repository and in CI. 7 min 14 chapters Episode 63
  4. 6:134. Coverage

    Code Coverage of Backend Tests in Eight Languages

    Which lines of your backend did the tests really run? Turn on one switch and every run of the test cases counts its lines, in TypeScript, Python, PHP, C#, Go, Rust, Java and Kotlin. See the report of a run, the red lines no test reached, the two tests that cover them, a utility class of Python in the same report, and the same coverage in VS Code, WebStorm and CI. 6 min 14 chapters Episode 62
  5. 8:325. Debugging

    Debug an API from the Failing Call to the Line That Broke

    Something broke at checkout. Follow one real bug from the failing call to the line that broke, with every debugging tool of API Maker: Log Explorer, stack traces that name the line, Test Hooks, Console Logs View, the queries of one call, Debug Settings, and a breakpoint in your own code. 9 min 12 chapters Episode 38