115 lines
9.4 KiB
Plaintext
115 lines
9.4 KiB
Plaintext
|
|
<mxfile host="65bd71144e">
|
||
|
|
<diagram id="api-endpoints" name="API Endpoints">
|
||
|
|
<mxGraphModel dx="1200" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1000" pageHeight="700" math="0" shadow="0">
|
||
|
|
<root>
|
||
|
|
<mxCell id="0"/>
|
||
|
|
<mxCell id="1" parent="0"/>
|
||
|
|
<!-- Title -->
|
||
|
|
<mxCell id="2" value="API Endpoints - Admin Panel" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="250" y="20" width="500" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
|
||
|
|
<!-- Authentication -->
|
||
|
|
<mxCell id="3" value="🔐 Authentication" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="70" width="200" height="25" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="4" value="POST /api/auth/login" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="100" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="5" value="GET /api/auth/me" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="140" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="6" value="POST /api/auth/logout" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="180" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
|
||
|
|
<!-- Plans -->
|
||
|
|
<mxCell id="7" value="📋 Subscription Plans" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="320" y="70" width="200" height="25" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="8" value="GET /api/plans" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="320" y="100" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="9" value="POST /api/plans" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="320" y="140" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="10" value="PUT /api/plans/:id" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="320" y="180" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="11" value="DELETE /api/plans/:id" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="320" y="220" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
|
||
|
|
<!-- Cloudflare Accounts -->
|
||
|
|
<mxCell id="12" value="☁️ Cloudflare Accounts" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="560" y="70" width="200" height="25" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="13" value="GET /api/cf-accounts" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="560" y="100" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="14" value="POST /api/cf-accounts" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="560" y="140" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="15" value="PUT /api/cf-accounts/:id" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="560" y="180" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="16" value="DELETE /api/cf-accounts/:id" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="560" y="220" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="17" value="GET /api/cf-accounts/stats" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="560" y="260" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
|
||
|
|
<!-- Customers -->
|
||
|
|
<mxCell id="18" value="👥 Customers" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="280" width="200" height="25" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="19" value="GET /api/customers" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="310" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="20" value="GET /api/customers/:id" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="350" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="21" value="PUT /api/customers/:id/plan" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="390" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="22" value="GET /api/customers/stats" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="430" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
|
||
|
|
<!-- Audit Logs -->
|
||
|
|
<mxCell id="23" value="📝 Audit Logs" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="320" y="280" width="200" height="25" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="24" value="GET /api/audit" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="320" y="310" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="25" value="GET /api/audit?filter=..." style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="320" y="350" width="200" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
|
||
|
|
<!-- Legend -->
|
||
|
|
<mxCell id="26" value="Legend:" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="500" width="100" height="25" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="27" value="GET (Read)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="80" y="530" width="120" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="28" value="POST (Create)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="220" y="530" width="120" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="29" value="PUT (Update)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="360" y="530" width="120" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="30" value="DELETE (Remove)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="500" y="530" width="120" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="31" value="Stats/Analytics" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="640" y="530" width="120" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
</root>
|
||
|
|
</mxGraphModel>
|
||
|
|
</diagram>
|
||
|
|
</mxfile>
|
||
|
|
|