Snack

Retrieves the collection of Snack resources.

Retrieves the collection of Snack resources.

get/snacks

Request

  • Base URL: https://api.spash.com
  • URL: https://api.spash.com/snacks
  • Auth: one of:
    • API key in header Authorization
    • HTTP bearer

Query parameters

pageinteger

The collection page number

itemsPerPageinteger

The number of items per page

paginationboolean

Enable or disable pagination

sportCenter.idinteger
sportCenter.id[]integer[]
sportCenter.referenceinteger
sportCenter.reference[]integer[]
namestring
referencestring
reference[]string[]
availableboolean
createdAt[before]string
createdAt[strictly_before]string
createdAt[after]string
createdAt[strictly_after]string
updatedAt[before]string
updatedAt[strictly_before]string
updatedAt[after]string
updatedAt[strictly_after]string
order[createdAt]'asc' | 'desc'
order[updatedAt]'asc' | 'desc'

Response

Snack collection

idinteger
namestring required
descriptionstring nullable
imageUrlstring nullable

Url of the image. To remove, set it to null.

availableboolean
createdAtstring date-time
updatedAtstring date-time
referencestring

Example response

[
  {
    "sportCenter": {
      "coordinates": [
        0,
        0
      ],
      "visible": true,
      "timeZone": "Europe/Paris",
      "durationChoices": [
        3600,
        5400,
        7200
      ],
      "language": "en",
      "distanceUnite": "km",
      "country": {
        "currency": "EUR"
      },
      "tags": [
        {
          "createdAt": "CURRENT_TIMESTAMP",
          "updatedAt": "CURRENT_TIMESTAMP"
        }
      ],
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "createdAt": "CURRENT_TIMESTAMP",
    "updatedAt": "CURRENT_TIMESTAMP"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.