Resource URL: /platform/<<version=1>>/snapshot/repstates

    Overview: This resource applies the standard collection pattern to
              repstates.

     Methods: GET, POST

********************************************************************************

Method GET: List all repstates.

       URL: GET /platform/<<version=1>>/snapshot/repstates

There are no query arguments for this method.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "total": {
      "type": "integer", 
      "description": "Total number of items available."
    }, 
    "repstates": {
      "items": {
        "type": "object", 
        "properties": {
          "snap1": {
            "required": true, 
            "type": "integer", 
            "description": "The lower snapid used to compute the repstate."
          }, 
          "snap2": {
            "required": true, 
            "type": "integer", 
            "description": "The higher snapid used to compute the repstate."
          }, 
          "id": {
            "required": true, 
            "type": "string", 
            "description": "The system ID given to the repstate."
          }
        }
      }, 
      "type": "array"
    }, 
    "resume": {
      "type": [
        "string", 
        "null"
      ], 
      "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
    }
  }
}

********************************************************************************

Method POST: Create a new repstates.

        URL: POST /platform/<<version=1>>/snapshot/repstates

There are no query arguments for this method.

Required POST request body fields:
snap1, snap2, id

POST request body schema:
{
  "type": "object", 
  "properties": {
    "snap1": {
      "required": true, 
      "type": "integer", 
      "description": "The lower snapid used to compute the repstate."
    }, 
    "snap2": {
      "required": true, 
      "type": "integer", 
      "description": "The higher snapid used to compute the repstate."
    }, 
    "id": {
      "required": true, 
      "type": "string", 
      "description": "The system ID given to the repstate."
    }
  }
}

POST response body schema:
{
  "type": "object", 
  "properties": {
    "snap1": {
      "required": true, 
      "type": "integer", 
      "description": "The lower snapid used to compute the repstate."
    }, 
    "snap2": {
      "required": true, 
      "type": "integer", 
      "description": "The higher snapid used to compute the repstate."
    }
  }
}
