githubEdit

Text

Endpoints for various text manipulation functions.

Base URL

https://api.kyle.so/text

/reverse

Reverses the input text (x)

GET /reverse?text=x

Example: GET /text/reverse?text=hello

Response:

{
    "reversed": string,
    "original": string
}

Errors:

  • 400: No text provided


/length

Returns the length of the input text (x)

Example: GET /text/length?text=hello

Response:

Errors:

  • 400: No text provided


/uppercase

Converts the input text (x) to uppercase

Example: GET /text/uppercase?text=hello

Response:

Errors:

  • 400: No text provided


/lowercase

Converts the input text (x) to lowercase

Example: GET /text/lowercase?text=HELLO

Response:

Errors:

  • 400: No text provided


/replace

Replaces all occurrences of search with replace in the input text (x)

Example: GET /text/replace?text=hello&search=he&replace=no

Response:

Errors:

  • 400: No text provided


/lorem

Generates x words of lorem ipsum text

Example: GET /text/lorem?length=10

Response:

Constraints:

  • 0 < x < 2000

Errors:

  • 400: Invalid parameter


Last updated