<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Harpreet Arneja</title>
    <description>The latest articles on DEV Community by Harpreet Arneja (@mapyourcode).</description>
    <link>https://dev.to/mapyourcode</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4287032%2Fe45715d3-09b2-4588-b3f5-f3c289e1437a.png</url>
      <title>DEV Community: Harpreet Arneja</title>
      <link>https://dev.to/mapyourcode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mapyourcode"/>
    <language>en</language>
    <item>
      <title>How to list every endpoint of a legacy project that has no API docs</title>
      <dc:creator>Harpreet Arneja</dc:creator>
      <pubDate>Sun, 06 Dec 2026 21:38:47 +0000</pubDate>
      <link>https://dev.to/mapyourcode/how-to-list-every-endpoint-of-a-legacy-project-that-has-no-api-docs-34op</link>
      <guid>https://dev.to/mapyourcode/how-to-list-every-endpoint-of-a-legacy-project-that-has-no-api-docs-34op</guid>
      <description>&lt;p&gt;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?&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. By hand, with grep
&lt;/h2&gt;

&lt;p&gt;Every framework registers routes with a pattern you can search for. A few starting points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Express / Fastify: &lt;code&gt;app.get(&lt;/code&gt;, &lt;code&gt;router.post(&lt;/code&gt;, &lt;code&gt;.route(&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Django: &lt;code&gt;path(&lt;/code&gt; and &lt;code&gt;re_path(&lt;/code&gt; in every &lt;code&gt;urls.py&lt;/code&gt;, plus DRF routers (&lt;code&gt;router.register(&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Laravel: &lt;code&gt;Route::&lt;/code&gt; in &lt;code&gt;routes/*.php&lt;/code&gt;, and &lt;code&gt;loadRoutesFrom(&lt;/code&gt; in service providers&lt;/li&gt;
&lt;li&gt;Rails: &lt;code&gt;config/routes.rb&lt;/code&gt;, including &lt;code&gt;resources&lt;/code&gt; and &lt;code&gt;draw(:name)&lt;/code&gt; files&lt;/li&gt;
&lt;li&gt;ASP.NET: &lt;code&gt;[Http*]&lt;/code&gt; attributes and &lt;code&gt;Map*(&lt;/code&gt; calls in &lt;code&gt;Program.cs&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Spring: &lt;code&gt;@GetMapping&lt;/code&gt;, &lt;code&gt;@RequestMapping&lt;/code&gt;Then follow the prefixes. A router mounted at &lt;code&gt;/api/v2&lt;/code&gt; in one file and defining &lt;code&gt;/users&lt;/code&gt; in another serves &lt;code&gt;/api/v2/users&lt;/code&gt;, and grep shows you neither the join nor the routes registered in a loop.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This works for small apps. On anything larger you will miss routes without knowing which ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. With your IDE
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. With a generated map
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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: &lt;a href="https://mapyourcode.com/#sample" rel="noopener noreferrer"&gt;mapyourcode.com/#sample&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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. &lt;a href="https://mapyourcode.com/?src=devto#beta" rel="noopener noreferrer"&gt;Sign up here&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>legacy</category>
      <category>webdev</category>
      <category>api</category>
    </item>
  </channel>
</rss>
