API Docs
I write this documentation by hand, since the API is rather petit. Nonetheless, that means it could drift from
the actual implementation. So if anything is not working according to this documentation, please report it at
[email protected] with the subject
[larousseapi] DOCS: description.
/GET word translations
Example cURL
curl --request GET \
--url $API_BASE/words/:word/translation
Example response
{
"word": "voiture",
"translations": [
"car,",
"coach,",
"carriage,"
]
}
/GET word definitions
Example cURL
curl --request GET \
--url $API_BASE/words/:word/definition
Example response
{
"word": "voiture",
"definitions": [
"Véhicule susceptible de conduire, porter ou transporter des personnes ou des marchandises :",
"Automobile :",
"Véhicule ferroviaire destiné au transport des voyageurs (par opposition au , utilisé pour le transport des marchandises).",
"Chargement d'un véhicule, d'un camion, etc. :"
]
}