Examples

$ curl -i \
  -H "Accept: application/json; version=1" \
  -H "Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQyLCJpYXQiOjE0NjM2OTQ4MjN9.k48v-R-un93KdIXqp9Zi12JOGJCu8uibtrWjscFCTqc" \
  https://api.record360.com/api/form_templates

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate

{
  "form_templates": [
    {
      "id": "42",
      "url": "https://record360-media.s3.amazonaws.com/form_templates/42/form.pdf",
      "fields": {
        "Name": { "type": "string", "maxLength": 50 },
        "Street Address": { "type": "string", "maxLength": 100 },
        ...
      },
      "created_at": "2018-04-24T22:31:30.902Z",
      "updated_at": "2018-04-24T22:31:30.902Z"
    }, {
      "id": "43",
      "url": "https://record360-media.s3.amazonaws.com/form_templates/43/form.pdf",
      "fields": {
        "Name": { "type": "string", "maxLength": 50 },
        "Street Address": { "type": "string", "maxLength": 100 },
        ...
      },
      "created_at": "2018-04-24T23:31:00.0Z",
      "updated_at": "2018-04-24T23:31:00.0Z"
    },
  ],      
  "links": {
    "prev": "https://api.record360.com/api/form_templates?before_id=42&limit=2",
    "next": "https://api.record360.com/api/form_templates?after_id=43&limit=2"
  }
}

Params

Param name Description
before_id
optional

Return Form Templates before the specified ID

Validations:

  • Must be a String

after_id
optional

Return Form Templates after the specified ID

Validations:

  • Must be a String

limit
optional

Limit the number of Form Templates to return (max: 50)

Validations:

  • Must be a number.