{"name":"Astro Library REST API","version":"2.0.0","description":"Calculate sunrise and sunset times using astro_lib (C++) or suntime (Python) implementations","endpoints":{"GET /api/astro/:library":{"description":"Calculate sunrise and sunset times for a single date or date range","parameters":{"library":"Library to use: \"astro_lib\" (C++), \"suntime\" (Python), or \"astronomy\" (Node.js) (path parameter)","lat":"Latitude (-90 to 90) (query parameter)","lon":"Longitude (-180 to 180) (query parameter)","from_date":"Start date in YYYY-MM-DD format (query parameter)","to_date":"End date in YYYY-MM-DD format (query parameter, same as from_date for single date)"},"example":"/api/astro/suntime?lat=12.9716&lon=77.5946&from_date=2025-01-01&to_date=2025-01-01","response":[{"date":"YYYY-MM-DD","sunrise":{"seconds":120,"time":"HH:MM:SS"},"sunset":{"seconds":43200,"time":"HH:MM:SS"}}]},"GET /api/health":{"description":"Check API health and available implementations"}},"implementations":{"cpp":"Available","python":"Available","astronomy":"Available"}}