{"files":{"SKILL.md":"---\nname: trivia-api\ndescription: \"Trivia API skill. Use when working with Trivia for trivia. Covers 6 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Trivia API\nAPI version: 1.5\n\n## Auth\nApiKey X-Fungenerators-Api-Secret in header\n\n## Base URL\nhttps://api.fungenerators.com/\n\n## Setup\n1. Set your API key in the appropriate header\n2. GET /trivia -- get a trivia entry for a given id. retrieves a trivia question and answer based on the id.\n3. Explore available endpoints below\n\n## Endpoints\n6 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Trivia\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /trivia | Get a Trivia entry for a given id. Retrieves a trivia question and answer based on the id. |\n| PUT | /trivia | Create a random Trivia entry. |\n| DELETE | /trivia | Create a random Trivia entry. |\n| GET | /trivia/random | Get a random trivia for a given category(optional) |\n| GET | /trivia/search | Search for random trivia which has the text in the query, for a given category(optional). |\n| GET | /trivia/categories | Get a random Trivia. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all trivia?\" -> GET /trivia\n- \"List all random?\" -> GET /trivia/random\n- \"Search search?\" -> GET /trivia/search\n- \"List all categories?\" -> GET /trivia/categories\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@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"}}