@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
@optional {chart: str, width: int, height: int, format: str, backgroundColor: str, key: str}
@returns(200)

@endpoint POST /chart
@optional {chart: map, width: int, height: int, format: str, backgroundColor: str, key: str}
@returns(200)

@endgroup

@group qr
@endpoint GET /qr
@optional {text: str, width: int, height: int, format: str, margin: int, key: str}
@returns(200)

@endpoint POST /qr
@optional {text: str, width: int, height: int, format: str, margin: int, key: str}
@returns(200)

@endgroup

@end
