rates/backend/api
jtricerolph e481ad5258 Add Power BI reporting endpoints — flat tabular data via API key auth
Three read-only endpoints under /reporting/:
- /hotels       hotel dimension table (tier, stars, review score)
- /rates        full rates fact — all sources, room types, scrape history in one flat table
- /occupancy    Newbook occupancy per date × room category

Rates UNION covers Booking.com scrapes, direct competitor engines (with
configured room/rate labels), and own hotel Newbook headline rates.
Authenticated via X-API-Key header; key stored in system_config.reporting_api_key.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-14 17:27:50 +00:00
..
__init__.py
analysis.py Rate Analysis: fix hotel detail 500 + timeline 422, match frontend shapes; signed % delta badge 2026-07-05 15:01:57 +00:00
bookability.py Add occupancy pick-up history + bookability history popup 2026-07-12 12:38:02 +00:00
competitors.py Add "Changed Since" rate movement indicators to Market View matrix 2026-07-10 11:19:34 +00:00
direct.py Add benchmark & tier-offset configuration UI to Direct Rates Manage tab 2026-07-06 07:09:10 +00:00
reporting.py Add Power BI reporting endpoints — flat tabular data via API key auth 2026-07-14 17:27:50 +00:00