Skip to content

feat: api to serve hotel signal data - #45

Merged
selvarajuv merged 2 commits into
mainfrom
38-api-to-serve-hotel-signal-data
Oct 13, 2026
Merged

selvarajuv merged 2 commits into
mainfrom
38-api-to-serve-hotel-signal-data

Conversation

@bhuvanh66

@bhuvanh66 bhuvanh66 commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Closes #38

Type of change

Add routes for hotel and external data (routes, services, repository, tests). Still need to test routes with real external data and hotel data. All list endpoints have pagination, unknown IDs return 404s.

  • feat — new feature
  • fix — bug fix
  • docs — documentation only
  • refactor — code change that neither fixes a bug nor adds a feature
  • perf — performance improvement
  • test — adding or updating tests
  • chore / build / ci — tooling, deps, or pipeline changes

Changes

  • Added routes layer for hotel, external data

Database migrations

  • No schema changes
  • Includes an Alembic migration (just migrate-create "...")
  • Migration runs cleanly (just migrate) and rolls back (just migrate-down)

Checklist

  • Commits follow Conventional Commits
  • Lint passes (just lint) and code is formatted (just format)
  • Pre-commit hooks run clean (just hooks installed)
  • Updated docs / README / .env.example where relevant
  • Tested locally (just dev) and verified the API at http://localhost:8000/docs

How to test

  1. Run tests
  2. View api docs: http://localhost:8001/docs#description/introduction

Notes for reviewers

@bhuvanh66 bhuvanh66 linked an issue Oct 12, 2026 that may be closed by this pull request
7 tasks
@bhuvanh66
bhuvanh66 requested a review from selvarajuv October 12, 2026 19:55
@bhuvanh66 bhuvanh66 changed the title 38 api to serve hotel signal data feat: api to serve hotel signal data Oct 12, 2026
@bhuvanh66
bhuvanh66 force-pushed the 38-api-to-serve-hotel-signal-data branch 2 times, most recently from 0129a44 to 247a384 Compare October 12, 2026 20:15
selvarajuv and others added 2 commits October 13, 2026 14:06
Add RequestSchema, ResponseSchema and ExternalPayload base classes and
document the standard in agents/schemas.md. Convert the widget and hotel
schemas from Create/Read to Request/Response without inheritance.
Hotels and room types (list, get, create), nightly performance by date
range, and read-only weather, events and flight arrivals. List endpoints
paginate; unknown ids return 404. The recommendation endpoint returns a
placeholder in the final response shape. Schemas follow the
Request/Response standard and repositories never commit.

Co-authored-by: Vichu Selvaraju <vichuselvaraju@gmail.com>
@selvarajuv
selvarajuv force-pushed the 38-api-to-serve-hotel-signal-data branch from 247a384 to 7d0f1fd Compare October 13, 2026 18:08
@selvarajuv
selvarajuv merged commit fda85a0 into main Oct 13, 2026
4 checks passed
@Jrodrigo06
Jrodrigo06 deleted the 38-api-to-serve-hotel-signal-data branch October 15, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API to Serve Hotel & Signal Data

3 participants