I've spent 11 years on IT transitions, where one team takes over systems another team built. The first question I get is always the same: where are these processes and activities written down, and is the knowledge base in good enough shape to hand to the new team?
With code the question sounds a little different. You've taken over an application nobody documented, and before you change anything you want one list: every endpoint it serves, and where each one is defined.
1. By hand, with grep
Every framework registers routes with a pattern you can search for. A few starting points:
- Express / Fastify:
app.get(,router.post(,.route( - Django:
path(andre_path(in everyurls.py, plus DRF routers (router.register() - Laravel:
Route::inroutes/*.php, andloadRoutesFrom(in service providers - Rails:
config/routes.rb, includingresourcesanddraw(:name)files - ASP.NET:
[Http*]attributes andMap*(calls inProgram.cs - Spring:
@GetMapping,@RequestMappingThen follow the prefixes. A router mounted at/api/v2in one file and defining/usersin another serves/api/v2/users, and grep shows you neither the join nor the routes registered in a loop.
This works for small apps. On anything larger you will miss routes without knowing which ones.
2. With your IDE
JetBrains IDEs have an Endpoints tool window that lists the routes of supported frameworks. It's quick when your stack is supported and you have the project open. A mixed repository (a Go API, a Next.js front end and a Python worker) is harder, and you can't hand the list to someone who doesn't use the IDE.
3. With a generated map
This is what I built MapYourCode for. It parses the repository (no AI model reads the code to build the map) and writes every endpoint, table, personal-data field and outside service into Markdown and JSON, each with the file and line it came from.
On the open-source invoicing app Invoicerr, the public sample lists 235 endpoints, 61 tables, 38 personal-data fields and 48 outside systems. You can check any line of it against the code: mapyourcode.com/#sample
When it can't read something, it says so. A route registered in a way the parser doesn't follow is listed as "not read", so you see the gap.
For a weekend project, grep is enough, and for one stack you know, your IDE will do. I'd reach for a generated map when the repository is one you just inherited, mixes several stacks, or needs a list someone else can check, such as a new team or an auditor.
I'm looking for a few testers: one repository you own or run (public is fine), mapped free, in return for 15 minutes of feedback. Sign up here.
