# LEWB - Diplomas
# Types
| Type | Diploma |
|---|---|
| ADEPS | Ecuyer FRBSE |
| ADEPS | Moniteur Niveau 1 |
| ADEPS | Moniteur Niveau 2 |
| ADEPS | Moniteur Niveau 3 |
| ADEPS | Moniteur Niveau 4 |
| ADEPS | Moniteur Niveau 1 - Western Riding |
| ADEPS | Moniteur Niveau 2 - Western Riding |
| ADEPS | Moniteur Sportif Animateur Généraliste |
| ADEPS | Moniteur Sportif Animateur Western |
| ADEPS | Moniteur Sportif Initiateur Généraliste |
| ADEPS | Moniteur Sportif Initiateur Attelage |
| ADEPS | Moniteur Sportif Initiateur Western |
| ADEPS | Moniteur Sportif Educateur Généraliste |
| ADEPS | Moniteur Sportif Educateur Obstacles |
| ADEPS | Moniteur Sportif Educateur Complet |
| ADEPS | Moniteur Sportif Educateur Endurance |
| ADEPS | Moniteur Sportif Educateur Dressage |
| ADEPS | Moniteur Sportif Animateur Pony Games |
| ADEPS | Moniteur Sportif Initiateur Pony Games |
| ADEPS | Moniteur Sportif Animateur Voltige |
| ADEPS | Moniteur Sportif Initiateur Voltige |
| FITE | Accompagnateur TE FITE |
| FITE | Guide TE FITE |
| FITE | Maître Randonneur TE FITE |
| IGEQ | International Level 1 |
| IGEQ | International Level 2 |
| IGEQ | International Level 3 |
| IGEQ | International Level Expert |
# Events
--- LEWB_DIPLOMAS_UPDATED ---
{
"event": "LEWB_DIPLOMAS_UPDATED",
"data": {
"person_id": 123
}
}
# Validation
Tip
Validation mentioned will trigger for each entry in the payload array. In case of an error, the index of the element in that array will be included in the response with error messages as mentioned in the general information
{
"type" : [
"required",
"in:FITE,IGEQ,ADEPS"
],
"diploma": [
"required",
"a valid diploma for the specified type"
],
"number": [
"nullable",
"the unique number for the diploma"
],
"date": [
"required",
"date:Y-m-d"
]
}
# List
--- ENDPOINT ---
Domain: equidata
Url: /people/123/lewb/diplomas
Method: GET
--- EXAMPLE RESPONSE ---
[
{
"type": "ADEPS",
"diploma": "Moniteur Niveau 1",
"number": "2020010103",
"date": "2020-01-01"
},
// ... other valid diploma entries
]
# 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.
Warning
This is a specific endpoint for LEWB. When trying to call this endpoint as a different liga, you'll get an unauthorized response.
--- ENDPOINT ---
Domain: equidata
Url: /people/123/lewb/diplomas
Method: PUT
--- EXAMPLE PAYLOAD ---
{
"diplomas": [
{
"type": "ADEPS",
"diploma": "Moniteur Niveau 1",
"number": "2020010103",
"date": "2020-01-01"
},
{
"type": "IGEQ",
"diploma": "International Level 1",
"number": "2020010104",
"date": "2020-01-01"
}
]
}
--- EXAMPLE RESPONSE ---
[
{
"type": "ADEPS",
"diploma": "Moniteur Niveau 1",
"number": "2020010103",
"date": "2020-01-01"
},
{
"type": "IGEQ",
"diploma": "International Level 1",
"number": "2020010104",
"date": "2020-01-01"
}
]