- From: Tomasz Pluskiewicz via GitHub <sysbot+gh@w3.org>
- Date: Tue, 12 Feb 2019 19:40:42 +0000
- To: public-hydra-logs@w3.org
Another common design choice could be `skip`/`take` approach:
```diff
{
- "template": "http://example.com/api/events{?search}",
+ "template": "http://example.com/api/events{?search,limit,offset}",
"mapping": [
+ {
+ "@type": "IriTemplateMapping",
+ "variable": "limit",
+ "property": "take",
+ "required": false
+ },
+ {
+ "@type": "IriTemplateMapping",
+ "variable": "offset",
+ "property": "skip",
+ "required": false
+ }
]
}
```
--
GitHub Notification of comment by tpluscode
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/102#issuecomment-462904594 using your GitHub account
Received on Tuesday, 12 February 2019 19:40:45 UTC