Add now-playing and upcoming movie endpoints
CI / lint (push) Canceled after 0s
CI / typecheck (push) Canceled after 0s
CI / unit-tests (push) Canceled after 0s
CI / integration-tests (push) Canceled after 0s
CI / container-build (push) Canceled after 0s
CI / dependency-audit (push) Canceled after 0s
CI / lint (push) Canceled after 0s
CI / typecheck (push) Canceled after 0s
CI / unit-tests (push) Canceled after 0s
CI / integration-tests (push) Canceled after 0s
CI / container-build (push) Canceled after 0s
CI / dependency-audit (push) Canceled after 0s
Buildable now that release_dates exists: GET /movies/now-playing and /movies/upcoming filter on release_type="theatrical" per region, windowed around today. A movie can carry more than one theatrical-type row in the same region (limited release then wide release both map to "theatrical" per normalizer._RELEASE_TYPE_MAP) -- collapsed to one row per movie via a grouped subquery rather than joining ReleaseDate directly, which would duplicate the movie in the page and inflate the total count. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
567b4ef068
commit
74ebad379a
+13
@@ -49,6 +49,8 @@ GET /api/v1/search?q=the%20matrix
|
||||
| GET | `/api/v1/movies/{aurora_id}/images` |
|
||||
| GET | `/api/v1/movies/{aurora_id}/videos` |
|
||||
| GET | `/api/v1/movies/{aurora_id}/recommendations` |
|
||||
| GET | `/api/v1/movies/now-playing` |
|
||||
| GET | `/api/v1/movies/upcoming` |
|
||||
|
||||
`GET /api/v1/movies` browses/discovers without a search query — the
|
||||
complement to `/search` (section 17, additive beyond the spec's minimum
|
||||
@@ -129,6 +131,17 @@ ingested:
|
||||
}
|
||||
```
|
||||
|
||||
`GET /api/v1/movies/now-playing` and `GET /api/v1/movies/upcoming` use the
|
||||
`release_dates` data above rather than `release_date`/`year`: `region`
|
||||
(ISO 3166-1 alpha-2, default `US`), `page`, `page_size` — same
|
||||
`MovieListOut` response shape as `GET /movies`, no `genre`/`keyword`/`sort_by`.
|
||||
"Now playing" is movies with a `release_type: "theatrical"` date in
|
||||
`region` within roughly the last month; "upcoming" is the same but in the
|
||||
future, soonest first. A movie can carry more than one theatrical-type row
|
||||
in the same region (a limited release followed by a wide release both map
|
||||
to `"theatrical"`) — these collapse to one entry per movie (latest date for
|
||||
now-playing, soonest for upcoming) rather than appearing twice.
|
||||
|
||||
## Series / Seasons / Episodes
|
||||
|
||||
| Method | Path |
|
||||
|
||||
Reference in New Issue
Block a user