Casse
L'endpoint /case convertit un texte entre 9 formats de casse avec une tokenisation universelle (split camelCase, _, -, ., espaces).
gethttps://api.moxon.dev /v6/case
Essayerget/v6/case
curl -X GET \ "https://api.moxon.dev/v6/case"Envoyez la requête pour voir la réponse ici.
- —
textstringrequisTexte à convertir
tostringoptionnelPar défaut :
camel.Format cible
- camel
- pascal
- snake
- kebab
- constant
- title
- sentence
- upper
- lower
| Format | Description | Exemple (hello_world) |
|---|---|---|
camel | camelCase | helloWorld |
pascal | PascalCase | HelloWorld |
snake | snake_case | hello_world |
kebab | kebab-case | hello-world |
constant | CONSTANT_CASE | HELLO_WORLD |
title | Title Case | Hello World |
sentence | Sentence case | Hello world |
upper | MAJUSCULES | HELLO_WORLD |
lower | minuscules | hello_world |
textstringLe texte d'entrée
tostringLe format cible
resultstringLe texte converti
Si les paramètres sont manquants ou invalides, l'API retournera une erreur :
- 400
Please provide a text (?text={text})Le paramètretextest manquant - 400
Text cannot exceed 1000 charactersLetextdépasse la longueur maximale - 400
Text must contain at least one alphanumeric characterLetextne contient que des séparateurs/de la ponctuation (ex.---), sans rien à convertir - 400
Invalid target case. Valid values: camel, pascal, snake, kebab, constant, title, sentence, upper, lowerLa valeur deton'est pas valide
Mis à jour le 12 septembre 2026