Re: [Specifications] Define client-initiated pagination (#102)

> Client does not know the URI yet? How comes it wants to navigate to a _specific_ page, without knowing what page that is?

Yes, very good points, which we should address in a more general terms of describing the template.

For example, I'd like to have the flexibility to define constraints of a template variable. 

```json
{
  "@type": "IriTemplateMapping",
  "variable": "page",
  "property": "page",
  "constraints": [{
    "type": "xsd:integer",
    "min": 1,
    "max": 20
  }]
}
```

This way the server could precisely control the client by letting it know what are the valid inputs.

This goes way beyond collections though, and I'd like to discuss about templates and constraints in general.

-- 
GitHub Notification of comment by tpluscode
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/102#issuecomment-463139897 using your GitHub account

Received on Wednesday, 13 February 2019 10:11:55 UTC