{"name":"WordCloud API","version":"2.0.0","endpoints":{"POST /api/wordcloud":{"description":"Generate a simple wordcloud image (fast, reliable)","body":{"words":[{"text":"example","value":100},{"text":"word","value":50}],"options":{"width":800,"height":600,"backgroundColor":"#ffffff","colorScheme":["#1f77b4","#ff7f0e","#2ca02c"]}},"response":"PNG image"},"POST /api/wordcloud/advanced":{"description":"Generate an advanced wordcloud using D3.js (prettier, slower)","body":"Same as simple endpoint","response":"PNG image"},"GET /health":{"description":"Health check endpoint"}},"examples":{"simple":"curl -X POST http://localhost:3000/api/wordcloud -H \"Content-Type: application/json\" -d '{\"words\": [{\"text\": \"Hello\", \"value\": 100}, {\"text\": \"World\", \"value\": 80}]}' --output wordcloud.png","advanced":"curl -X POST http://localhost:3000/api/wordcloud/advanced -H \"Content-Type: application/json\" -d '{\"words\": [{\"text\": \"Hello\", \"value\": 100}, {\"text\": \"World\", \"value\": 80}]}' --output wordcloud.png"}}