Docs/Format Utils/GET /v1/case-converter

GET /v1/case-converterConvert string case via GET

Format Utils lf-format-utils

Changes the capitalisation and spacing style of a phrase. Converts a string between different cases: camelCase, snake_case, kebab-case, PascalCase, Title Case, UPPERCASE, or lowercase.

Query Parameters

ParameterTypeRequiredDescription
inputstringYesText to convert
casestringNoTarget case (camel/snake/kebab/pascal/title/upper/lower)

Response Schema

success (boolean): Operation success
input (string): Original input
case (string): Target case
result (string): Converted result

cURL Example

curl 'https://lf-format-utils.laminarforge.dev/v1/case-converter?input=hello%20world&case=kebab' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-format-utils.laminarforge.dev/v1/case-converter'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'input': 'hello world', 'case': 'kebab'}
response = requests.get(url, headers=headers, params=params)
print(response.json())