# API Inventory from Schema and Traffic

> Build an API inventory from the OpenAPI file, proxy and gateway traffic and client code, find routes that are missing from it, and map each route to the OWASP API risks.

Canonical: https://codelivly.com/rooms/api-inventory-from-schema-and-traffic
Last updated: 2026-11-25

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 3 h 10 min |
| XP | 940 |

An API assessment starts with knowing what answers. This room reads the Ledgerline OpenAPI description as a set of claims, compares it with your own traffic, a gateway summary and the client code, and separates documented, internal, legacy and undocumented routes. You confirm one new route with a single read request on a test record, attach OWASP API Security Top 10 (2023) questions to the routes, and assemble an inventory whose counts add up. Every lesson has a terminal exercise on realistic exports and scenario questions that need judgment.

## Lessons

1. Reading an OpenAPI Document as a Tester (35 min)
2. Comparing the Schema with Observed Traffic (35 min)
3. Old Versions and Undocumented Routes (40 min)
4. Mapping Routes to the OWASP API Risks (35 min)
5. Guided Lab: Build the Ledgerline API Inventory (45 min)

## Related

- [Learning path: REST and GraphQL API Security Testing](https://codelivly.com/learning-paths/rest-and-graphql-api-security-testing)
- [All rooms](https://codelivly.com/rooms)
