@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Math API
@base https://wikimedia.org/api/rest_v1
@version 1.0.0
@auth ApiKey cookie in header
@endpoints 3
@toc media(3)

@endpoint POST /media/math/check/{type}
@required {type: str(tex/inline-tex/chem)}
@returns(200)
@errors {400}

@endpoint GET /media/math/formula/{hash}
@required {hash: str}
@returns(200)
@errors {404}

@endpoint GET /media/math/render/{format}/{hash}
@required {format: str(svg/mml/png), hash: str}
@returns(200)
@errors {404}

@end
