value is what the dive-log write endpoints accept; the label is display text. Cache the response client-side, one copy per language: it changes only when a translation or an enum case changes.App\Http\Controllers\Api\V1\Public\DiveLogOptionController::index()api.v1.public.dive-log-options.indexthrottle:public - the dedicated public-area limiter, keyed by IP address. See docs/api/README.md §14. SetApiLocale resolves the response language from Accept-Language; see docs/api/README.md §10, Response language.GET/api/v1/public/dive-log-optionsAccept-Language to choose the label language; without it the response is in English.200 OKAccept-Language. The response carries Content-Language: en and Vary: Accept-Language.{
"success": true,
"status": "success",
"message": "OK",
"data": {
"gas": [
{
"value": "air",
"label": "Air"
},
{
"value": "nitrox",
"label": "Nitrox"
},
{
"value": "trimix",
"label": "Trimix"
},
{
"value": "triox",
"label": "Triox"
}
],
"dive_type": [
{
"value": "pool",
"label": "Pool dive"
},
{
"value": "shore",
"label": "Shore dive"
},
{
"value": "boat",
"label": "Boat dive"
},
{
"value": "altitude",
"label": "Altitude dive"
},
{
"value": "overhead",
"label": "Overhead Dive"
}
],
"dive_config": [
{
"value": "freediving",
"label": "Free Diving"
},
{
"value": "open_circuit",
"label": "Open Circuit"
},
{
"value": "semi_close_rebreather",
"label": "Rebreather SCR"
},
{
"value": "close_circuit_rebreather",
"label": "Rebreather CCR"
},
{
"value": "sidemount_oc",
"label": "Sidemount OC"
},
{
"value": "sidemount_ccr",
"label": "Sidemount CCR"
}
],
"purpose_type": [
{
"value": "fun_dive",
"label": "Fun Dive"
},
{
"value": "course_log",
"label": "Course Log Dive"
}
],
"weather": [
{
"value": "sunny",
"label": "Sunny weather"
},
{
"value": "cloudy",
"label": "Cloudy weather"
},
{
"value": "foggy",
"label": "Foggy weather"
},
{
"value": "rainy",
"label": "Rainy weather"
},
{
"value": "storm",
"label": "Stormy weather"
}
],
"water": [
{
"value": "calm",
"label": "Calm water"
},
{
"value": "choppy",
"label": "Choppy water"
},
{
"value": "heavy",
"label": "Heavy water"
},
{
"value": "rough",
"label": "Rough water"
},
{
"value": "stormy",
"label": "Stormy water"
}
],
"current": [
{
"value": "no_current",
"label": "No current"
},
{
"value": "light",
"label": "Light current"
},
{
"value": "moderate",
"label": "Moderate current"
},
{
"value": "strong",
"label": "Strong current"
}
],
"visibility": [
{
"value": "poor",
"label": "Poor visibility"
},
{
"value": "sufficient",
"label": "Sufficient visibility"
},
{
"value": "good",
"label": "Good visibility"
},
{
"value": "excellent",
"label": "Excellent visibility"
}
]
}
}200 OK with Accept-Language: itContent-Language: it and Vary: Accept-Language.{
"success": true,
"status": "success",
"message": "OK",
"data": {
"gas": [
{
"value": "air",
"label": "Aria"
},
{
"value": "nitrox",
"label": "Nitrox"
},
{
"value": "trimix",
"label": "Trimix"
},
{
"value": "triox",
"label": "Triox"
}
],
"dive_type": [
{
"value": "pool",
"label": "Immersione in piscina"
},
{
"value": "shore",
"label": "Immersione da riva"
},
{
"value": "boat",
"label": "Immersione da barca"
},
{
"value": "altitude",
"label": "Immersione in altitudine"
},
{
"value": "overhead",
"label": "Overhead Dive"
}
],
"dive_config": [
{
"value": "freediving",
"label": "Apnea"
},
{
"value": "open_circuit",
"label": "Circuito aperto"
},
{
"value": "semi_close_rebreather",
"label": "Rebreather SCR"
},
{
"value": "close_circuit_rebreather",
"label": "Rebreather CCR"
},
{
"value": "sidemount_oc",
"label": "Sidemount OC"
},
{
"value": "sidemount_ccr",
"label": "Sidemount CCR"
}
],
"purpose_type": [
{
"value": "fun_dive",
"label": "Immersione Ricreativa"
},
{
"value": "course_log",
"label": "Log di immersione del corso"
}
],
"weather": [
{
"value": "sunny",
"label": "Tempo soleggiato"
},
{
"value": "cloudy",
"label": "Tempo nuvoloso"
},
{
"value": "foggy",
"label": "Tempo nebbioso"
},
{
"value": "rainy",
"label": "Piovoso"
},
{
"value": "storm",
"label": "Tempesta"
}
],
"water": [
{
"value": "calm",
"label": "Acqua calma"
},
{
"value": "choppy",
"label": "Acqua increspata"
},
{
"value": "heavy",
"label": "Acqua pesante"
},
{
"value": "rough",
"label": "Acque agitate"
},
{
"value": "stormy",
"label": "Acque agitate"
}
],
"current": [
{
"value": "no_current",
"label": "Nessuna corrente"
},
{
"value": "light",
"label": "Corrente leggera"
},
{
"value": "moderate",
"label": "Corrente moderata"
},
{
"value": "strong",
"label": "Corrente forte"
}
],
"visibility": [
{
"value": "poor",
"label": "Scarsa visibilità"
},
{
"value": "sufficient",
"label": "Visibilità sufficiente"
},
{
"value": "good",
"label": "Buona visibilità"
},
{
"value": "excellent",
"label": "Visibilità eccellente"
}
]
}
}| Field | Type | Nullable | Always present | Description |
|---|---|---|---|---|
data.gas | array | No | Yes | Gas types |
data.dive_type | array | No | Yes | Dive types |
data.dive_config | array | No | Yes | Dive configurations |
data.purpose_type | array | No | Yes | Dive purposes |
data.weather | array | No | Yes | Weather conditions |
data.water | array | No | Yes | Water conditions |
data.current | array | No | Yes | Current conditions |
data.visibility | array | No | Yes | Visibility conditions |
data.{group}[].value | string | No | Yes | The machine value. Send this back on dive-log writes |
data.{group}[].label | string | No | Yes | Display text in the response language |
429 Too Many Requestspublic limiter (300 requests per minute, keyed by IP). No errors key. No Content-Language header: the limiter runs before the language is resolved.{
"success": false,
"status": "error",
"message": "Too many requests"
}label can fall back to English where the requested language has no translation: a response may mix languages. The two captures above show it - overhead is the same string in both.Accept-Language with the user's language.Accept-Language values are ignored and answered in English, never with a 406.docs/api/public/GET_dive_log_options.mdcurl --location 'https://test.diveraid.com/api/v1/public/dive-log-options' \
--header 'Accept-Language;'{
"status": "success",
"message": "string",
"data": {
"gas": [
{
"value": "air",
"label": "Air"
}
],
"dive_type": [
{
"value": "air",
"label": "Air"
}
],
"dive_config": [
{
"value": "air",
"label": "Air"
}
],
"purpose_type": [
{
"value": "air",
"label": "Air"
}
],
"weather": [
{
"value": "air",
"label": "Air"
}
],
"water": [
{
"value": "air",
"label": "Air"
}
],
"current": [
{
"value": "air",
"label": "Air"
}
],
"visibility": [
{
"value": "air",
"label": "Air"
}
]
}
}