{"note":"OpenAPI conversion -- returning structured metadata","name":"fungenerators-com-trivia","description":"Trivia API","version":"1.5","base_url":"https://api.fungenerators.com/","endpoints":6,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Trivia API\n@base https://api.fungenerators.com/\n@version 1.5\n@auth ApiKey X-Fungenerators-Api-Secret in header\n@endpoints 6\n@toc trivia(6)\n\n@endpoint GET /trivia\n@desc Get a Trivia entry for a given id. Retrieves a trivia question and answer based on the id.\n@optional {id: str(string) # ID of the trivia to fetch}\n@returns(200) 200  response\n@errors {401: 401  response}\n\n@endpoint PUT /trivia\n@desc Create a random Trivia entry.\n@required {question: str(string) # Trivia Question, category: str(string) # Category of the trivia, answer: str(string) # Answer(s) to the trivia question}\n@returns(200) 200  response\n@errors {401: 401  response}\n\n@endpoint DELETE /trivia\n@desc Create a random Trivia entry.\n@required {id: str(string) # Trivia ID}\n@returns(200) 200  response\n@errors {401: 401  response}\n\n@endpoint GET /trivia/random\n@desc Get a random trivia for a given category(optional)\n@optional {category: str(string) # Category to get the trivia from}\n@returns(200) 200  response\n@errors {401: 401  response}\n\n@endpoint GET /trivia/search\n@desc Search for random trivia which has the text in the query, for a given category(optional).\n@optional {query: str(string) # Text to search for in the trivia, category: str(string) # Category to get the trivia from}\n@returns(200) 200  response\n@errors {401: 401  response}\n\n@endpoint GET /trivia/categories\n@desc Get a random Trivia.\n@optional {start: int(integer) # start}\n@returns(200) 200  response\n@errors {401: 401  response}\n\n@end\n"}