API Documentation
Endpoints
GET /api/conditions
List all available conditions
{
"success": true,
"count": 49,
"conditions": [...]
}
GET /api/conditions/<slug>
Get details for a specific condition
Example: /api/conditions/rett-syndrome
{
"success": true,
"condition": {
"slug": "rett-syndrome",
"name": "Rett Syndrome",
"has_html": true,
"url": "/conditions/rett-syndrome"
}
}
GET /api/search?q=<query>
Search conditions by name
Example: /api/search?q=syndrome
{
"success": true,
"query": "syndrome",
"count": 25,
"results": [...]
}
GET /api/stats
Get statistics about the content
{
"success": true,
"stats": {
"total_conditions": 49,
"html_ready": 1,
"markdown_only": 48
}
}
Try It
- /api/conditions - List all
- /api/conditions/rett-syndrome - Rett Syndrome details
- /api/search?q=syndrome - Search example
- /api/stats - Statistics