Remove unnecessary full_status and snapshot API endpoints

This commit is contained in:
Brett Williams
2026-06-06 08:21:23 -05:00
parent 3f0ec18d68
commit d60340f129
4 changed files with 0 additions and 72 deletions
-19
View File
@@ -406,18 +406,6 @@
<p>Returns local system and queue status, including operating system, CPU, memory, job counts, hostname, port, app version, and API version.</p>
</article>
<article class="endpoint">
<div class="endpoint-header"><span class="method get">GET</span><span class="path">/api/snapshot</span></div>
<p>Returns local status, all jobs, and a timestamp.</p>
<div class="note">No direct in-repo HTTP callers were found. It overlaps with <code>/api/status</code> plus <code>/api/jobs</code> and is used internally by <code>/api/full_status</code>.</div>
</article>
<article class="endpoint">
<div class="endpoint-header"><span class="method get">GET</span><span class="path">/api/full_status</span></div>
<p>Returns a multi-server shaped status payload with the local server populated. Used by <code>RenderServerProxy.get_full_status()</code> and <code>dashboard.py</code>.</p>
<div class="note">The response shape suggests an intended future aggregation point, but it currently reports only the local server.</div>
</article>
<article class="endpoint">
<div class="endpoint-header"><span class="method get">GET</span><span class="path">/api/presets</span></div>
<p>Returns <code>config/presets.yaml</code>.</p>
@@ -562,13 +550,6 @@
<section id="cleanup">
<h2>Cleanup Review</h2>
<div class="panel">
<h3>Likely Redundant Or Overlapping Routes</h3>
<ul>
<li><code>/api/snapshot</code> overlaps with <code>/api/status</code> and <code>/api/jobs</code>. It is currently used internally by <code>/api/full_status</code>.</li>
</ul>
</div>
<div class="panel" style="margin-top: 14px;">
<h3>Routes With No In-Repo Callers Found</h3>
<ul>
<li><code>GET /api/jobs/status/&lt;status_val&gt;</code></li>