Repository navigation
Proposal: Replace "Trade Paperback" and "Hardcover" series types with "Collection" + a binding field
#679
Replies: 5 comments 1 reply
I'd also be in favour of retiring the |
|
Omnibus: My thought is to drop v2 changes: Yes, I'd like to drop all the *_list sub-endpoints, and also replace the series v1 sunset: I'd prefer to sunset it in 6 months also, but I'm not sure how realistic that would be for some of the businesses and comic shop that use the API. |
|
Omnibus seems like it would roll neatly into Collections, if binding weren't strictly required. Most omnibuses are probably hardcover, but there's certainly counter-examples, such as the complete volume of Bone. I think Hardcover and Softcover are all you'd need for binding. I'd suggest adopting "softcover" rather than "trade paperback" for the labeling there; TPBs are categorically softcover, but not everything softcover is a "trade paperback". While we're talking about bindings, I'd like to raise something that's tangentially related for consideration: Graphic Novels. I like the |
|
Thanks for redirecting me to that thread. I'll catch up on that thread and chip in my thoughts there. I'm building up quite the worklist in Cerebro, so I can plenty afford to be patient. :) In the meantime, I'm aligned on your approach to collections and can be an early adopter of API v2. |
|
Status update: where we've landed so far Thanks for the feedback, everyone. Here's what I think we've agreed on, plus what's still open. Agreed
Also going into v2
Still open
If there are any other breaking changes you'd like bundled into v2, now's the time to raise them. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Right now, collected editions are split across several
SeriesTypevalues (Trade Paperback, Hardcover, and arguably Omnibus). Those values mix two separate ideas: what the series is (a collection of previously published material) and how it's physically bound (paperback or hardcover).I'd like to propose:
bindingfield toSeries, with values like Hardcover and Trade Paperback. It's required when the series type is Collection and empty for every other type.Collectionwith the matchingbinding.Existing clients won't break. Client authors can move to v2 on their own schedule, until v1 reaches its sunset date.
Why
Proposed design
bindinglives onSeries, notIssue. A TPB series and an HC series of the same material stay separate series, as they are today. No series or issue IDs change.Series(publisher,name,volume,series_type) getsbindingadded. Otherwise existing TPB/HC pairs with the same name and volume would collide once both become "Collection".bindinginstead of series type.API versioning
Today the API is served from
/api/<resource>/with no version in the URL. The proposal:/api/.../api/v1/.../api/v2/...Collection+binding.Each version will have its own OpenAPI schema and Swagger docs.
v1: no changes for clients
v1 will translate the new data model back into the old one:
series_type, e.g.{"id": 10, "name": "Trade Paperback"}and{"id": 8, "name": "Hardcover"}. IDs 8 and 10 stay reserved and won't be reused.?series_type_id=10,?series_type_id=8and name filters like?series_type=tradekeep returning the same results on the series, issue and collection endpoints./api/series_type/: keeps listing Trade Paperback and Hardcover, and doesn't list Collection.series_type: 10or8are translated to Collection with the matching binding.modified_gtdon't need to re-sync anything.v1 responses will include
DeprecationandSunsetheaders once a sunset date is set.v2: what changes
series_typeis{"id": <new id>, "name": "Collection"}for all collected editions.bindingfield appears in the series list and detail responses, the series object nested in issue detail, and the collection endpoint. If your client usesseries_type.nameto tell a TPB from an HC (for example to set ComicInfo'sFormat), switch tobinding./api/series_type/lists Collection and no longer lists Trade Paperback or Hardcover.binding. The oldseries_type_id=8andseries_type_id=10filters don't exist in v2.binding.Proposed rollout
bindingfield and the Collection series type, and migrate existing TPB and HC series./api/v2/, along with v1 compatibility code that keeps v1 output identical./api/points to v2 (or redirects there).Since v2 is a rare chance to make breaking changes, now is also a good time to suggest any other breaking API changes you'd like to see bundled into it.
Open questions
Omnibus), or stay its own series type? For v1 to keep returning Omnibus correctly, the new model has to be able to tell an omnibus apart from a plain hardcover.series_type: 8/10writes, or should editing tools be required to use v2 for writes?Feedback welcome, especially from maintainers of any other tool that reads
series_type.All reactions