HydraCG / Specifications

Specifications created by the Hydra W3C Community Group
Other
138 stars 26 forks source link

Update UC of partial collection #165

Closed tpluscode closed 5 years ago

tpluscode commented 6 years ago

Fixes #163

I've updated the example of a partial collection to be represented using the PartialCollectionView as agreed in #42.


This change is Reviewable

tpluscode commented 6 years ago

@lanthaler, do we still keep the second items property to give the number in a single view?

{
  "totalItems": 100, // total
  "view": [{
    "items": 10 // this page/view
  }]
}
lanthaler commented 6 years ago

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.


drafts/use-cases/3.2.pagination.md, line 26 at r1 (raw file):

Previously, alien-mcl (Karol Szczepański) wrote…
I think it's a good idea. I'll try to update that PR with API "release candidate" :)

Yeah, just calling next here would be problematic as that would return the PartialCollectionView instead. Also, you renamed data to collection so you need to change it in this line as well


Comments from Reviewable

lanthaler commented 6 years ago

Review status: all files reviewed at latest revision, 1 unresolved discussion.


Comments from Reviewable

tpluscode commented 5 years ago

Closing as we no longer have maintain these use case document in this repo.