wet-boew / wet-boew-api-standards

Possible requirements for Government of Canada APIs based on the White House standards
Other
11 stars 11 forks source link

better offsets take 2 #12

Closed wardi closed 10 years ago

wardi commented 10 years ago

The current wording of offsets would create situations where it would be impossible to tell if an offset is an integer offset or a special value of some other type that happened to be an integer

This PR introduces a continueFrom parameter as a third offset parameter (the first two being offset and page) to avoid this problem. It also adds the comingFrom value to use to the metadata returned with results, simplifying use of this parameter for end users.