## Features Added: - **Automatic Documentation Generation**: Uses next-swagger-doc to scan API routes - **Interactive Swagger UI**: Try-it-out functionality for testing endpoints - **OpenAPI 3.0 Specification**: Industry-standard API documentation format - **Comprehensive Schemas**: Type definitions for all request/response objects ## New Documentation System: - `/docs` - Interactive Swagger UI documentation page - `/api/docs` - OpenAPI specification JSON endpoint - `src/lib/swagger.ts` - Documentation configuration and schemas - Complete JSDoc examples for batch classification endpoint ## Documentation Features: - Real-time API testing from documentation interface - Detailed request/response examples and schemas - Parameter validation and error response documentation - Organized by tags (Classification, Captioning, Tags, etc.) - Dark/light mode support with loading states ## AI Roadmap & Guides: - `AIROADMAP.md` - Comprehensive roadmap for future AI enhancements - `API_DOCUMENTATION.md` - Complete guide for maintaining documentation ## Benefits: - Documentation stays automatically synchronized with code changes - No separate docs to maintain - generated from JSDoc comments - Professional API documentation for integration and development - Export capabilities for Postman, Insomnia, and other tools 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
42 lines
987 B
JSON
42 lines
987 B
JSON
{
|
|
"name": "photos",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"description": "",
|
|
"dependencies": {
|
|
"@tabler/icons-react": "^3.34.1",
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@xenova/transformers": "^2.17.2",
|
|
"better-sqlite3": "^12.2.0",
|
|
"exif-reader": "^2.0.2",
|
|
"glob": "^11.0.3",
|
|
"next": "^15.5.0",
|
|
"next-swagger-doc": "^0.4.1",
|
|
"react": "^19.1.1",
|
|
"react-dom": "^19.1.1",
|
|
"react-share": "^5.2.2",
|
|
"redoc": "^2.5.0",
|
|
"sharp": "^0.34.3",
|
|
"swagger-ui-react": "^5.27.1"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.1.12",
|
|
"@types/node": "^24.3.0",
|
|
"@types/react": "^19.1.11",
|
|
"@types/react-dom": "^19.1.8",
|
|
"autoprefixer": "^10.4.21",
|
|
"postcss": "^8.5.6",
|
|
"tailwindcss": "^4.1.12",
|
|
"typescript": "^5.9.2"
|
|
}
|
|
}
|