@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Pirates API
@base https://api.fungenerators.com
@version 1.5
@auth ApiKey X-Fungenerators-Api-Secret in header
@endpoints 4
@toc pirate(4)

@endpoint GET /pirate/generate/name
@optional {variation: str(string), limit: int(integer)}
@returns(200)
@errors {401}

@endpoint GET /pirate/generate/insult
@optional {limit: int(integer)}
@returns(200)
@errors {401}

@endpoint GET /pirate/generate/lorem-ipsum
@optional {type: str(string), limit: int(integer)}
@returns(200)
@errors {401}

@endpoint GET /pirate/translate
@required {text: str(string)}
@returns(200)
@errors {401}

@end
