@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api QuickChart API
@base https://quickchart.io
@version 1.0.0
@auth ApiKey key in query
@endpoints 4
@toc chart(2), qr(2)

@group chart
@endpoint GET /chart
@desc Generate a chart (GET)
@optional {chart: str # The chart configuration in Chart.js format (JSON or Javascript)., width: int # The width of the chart in pixels., height: int # The height of the chart in pixels., format: str # The output format of the chart, 'png', 'jpg', 'svg', or 'webp'., backgroundColor: str # The background color of the chart., key: str # QuickChart API key}
@returns(200) A generated chart image.

@endpoint POST /chart
@desc Generate a chart (POST)
@optional {chart: map # The chart configuration in Chart.js format (JSON or Javascript)., width: int # The width of the chart in pixels., height: int # The height of the chart in pixels., format: str # The output format of the chart, 'png', 'jpg', 'svg', or 'webp'., backgroundColor: str # The background color of the chart., key: str # QuickChart API key}
@returns(200) A generated chart image.

@endgroup

@group qr
@endpoint GET /qr
@desc Generate a QR code (GET)
@optional {text: str # The text to be encoded in the QR code., width: int # The width of the QR code in pixels., height: int # The height of the QR code in pixels., format: str # The output format of the QR code, e.g., 'png' or 'svg'., margin: int # The margin around the QR code in pixels., key: str # QuickChart API key}
@returns(200) A generated QR code image.

@endpoint POST /qr
@desc Generate a QR code (POST)
@optional {text: str # The text to be encoded in the QR code., width: int # The width of the QR code in pixels., height: int # The height of the QR code in pixels., format: str # The output format of the QR code, e.g., 'png' or 'svg'., margin: int # The margin around the QR code in pixels., key: str # QuickChart API key}
@returns(200) A generated QR code image.

@endgroup

@end
