# Clubs - Walks
# Types
--- ENDPOINT ---
Domain: equidata
Url: /walk-types
Method: GET
--- EXAMPLE RESPONSE ---
[
{
"id": 1,
"type_nl": "Groepswandelingen",
"type_fr": "Balades en groupe",
},
// ...other walk types
]
# Events
--- CLUB_WALKS_UPDATED ---
{
"event": "CLUB_WALKS_UPDATED",
"data": {
"club_id": 12345,
}
}
# Validation
{
"walk_type_id": [
"required",
"a valid walk type",
"unique per club"
],
"drive": [
"required",
"boolean"
],
}
# List
--- ENDPOINT ---
Domain: equidata
Url: /clubs/123/walks
Method: GET
--- EXAMPLE RESPONSE ---
[
{
"walk_type": {}, // a walk type entity
"drive": false,
}
// ...other walk types
]
# Update
Warning
Make sure to add all data to the payload every time you call this endpoint.
- If your intention is to add a new entry, include the existing entries in the payload.
- If your intention is to delete an existing entry, add all remaining entries in the payload.
--- ENDPOINT ---
Domain: equidata
Url: /clubs/123/walks
Method: PUT
--- EXAMPLE PAYLOAD ---
{
"walks": [
{
"walk_type_id": 1,
"drive": false
}
]
}
--- EXAMPLE RESPONSE ---
[
{
"walk_type": {}, // a walk type entity
"drive": false,
}
// ...other walk types
]