api
Text Style

Documentation

Endpoint

POST https://api.i-as.dev/api/text-style

Body Request

The request body should contain a JSON object with the following structure:

{
  "text": "string"
}
  • text: The string of text that you want to apply different styles to.

Example Request

Here is an example of how to send a request to the Text Style API with a sample text:

POST https://api.i-as.dev/api/text-style

Body:
{
  "text": "Hello, World!"
}

Response Format

The API returns a JSON array containing a list of different styles applied to the input text. Each object contains the style name and the text with the applied style.

[
  {
    "style": "bold",
    "text": "Hello, World!"
  },
  {
    "style": "italic",
    "text": "Hello, World!"
  },
  // More data
]

Fields in Response:

  • style: The name of the text style applied.
  • text: The text with the style applied.

Example Response:

[
  {
    "style": "bold",
    "text": "Hello, World!"
  },
  {
    "style": "italic",
    "text": "Hello, World!"
  }
]

This API allows you to retrieve multiple styled versions of the provided text, such as bold, italic, and others.