Welcome to the ArtiiGen API documentation. This API allows you to generate ASCII art from text using various styles/fonts and provides access to style information and usage statistics.
Base URL: http://localhost:5000/
URL: /
Method: GET
Description: Returns a welcome message for the ArtiiGen API.
URL: /styles
Method: GET
Description: Returns a list of available styles (fonts) that can be used with the ArtiiGen.
{ "available_styles": [ "block", "banner", "bubble", ... ] }
URL: /ascii-art
Method: POST
Description: Generates ASCII art from provided text and style.
{ "text": "Your text goes here", "style": "chosen_style" }
Parameters:
text
(string): Text to convert into ASCII art.style
(string): Style (font) to use for the ASCII art.{ "ascii_art": "Generated ASCII art" }
URL: /scores
Method: GET
Description: Returns usage statistics (scores) for each style.
{ "block": 10, "banner": 5, "bubble": 7, ... }
400 Bad Request: Invalid request format or missing parameters.
{ "error": "Invalid request. Please provide text and style as JSON data" }
400 Bad Request: Invalid style provided.
{ "error": "Invalid style. Please choose from /styles" }
500 Internal Server Error: Any internal server error encountered during ASCII art generation.
{ "error": "Internal Server Error: Description" }