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

@endpoint GET /trivia
@optional {id: str(string)}
@returns(200)
@errors {401}

@endpoint PUT /trivia
@required {question: str(string), category: str(string), answer: str(string)}
@returns(200)
@errors {401}

@endpoint DELETE /trivia
@required {id: str(string)}
@returns(200)
@errors {401}

@endpoint GET /trivia/random
@optional {category: str(string)}
@returns(200)
@errors {401}

@endpoint GET /trivia/search
@optional {query: str(string), category: str(string)}
@returns(200)
@errors {401}

@endpoint GET /trivia/categories
@optional {start: int(integer)}
@returns(200)
@errors {401}

@end
