API Documentation Page Generator
Structure and document your endpoint specifications.
Service API Documentation
Version: 1.0 | Base URL: /api/v1
Endpoints
Add New Endpoint
Parameters (Query/Path)
Current Endpoints
Document Metadata
No endpoints defined. Use the builder to start documenting your API.
'; } endpoints.forEach(ep => { // --- 1. Render Dashboard Output --- // Determine Method Color Class let methodClass = 'api-method-get'; if (ep.method === 'POST') methodClass = 'api-method-post'; else if (ep.method === 'PUT') methodClass = 'api-method-put'; else if (ep.method === 'DELETE') methodClass = 'api-method-delete'; let cardHtml = `
${ep.method}
${baseUrl}${ep.path}
Description
${ep.description}
Parameters (${ep.params.length})
| Name | Type | Notes |
|---|---|---|
| ${p.name} | ${p.type} | ${p.desc} |
Example Response (200 OK)
${ep.response}
