Skip to content

Enforce integer modified date and afterTimestamp as MUSTs. #89

Description

@nickevansuk

Proposer

ODI

Use Case

Make RPDE easier to consume by enforcing integer modified date and afterTimestamp. Allowing modified to be either string or integer causes issues when using the modified date for cache invalidation, as both cases must be considered in the data store and application layer.

Proposal

Enforce integer modified date and afterTimestamp as MUSTs.

Examples

{
  "next": "http://api.letsride.co.uk/public/v1/rides?afterTimestamp=1453931925&afterId=2710",
  "items": [
    {
      "state": "updated",
      "id": 2710,
      "kind": "event",
      "modified": 1453931925,
      "data": {}
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions