{"openapi":"3.0.0","info":{"title":"PuzzleForge API","version":"2.0.0","description":"API endpoints for Wordle, Connections, Sudoku, Numbers, Memory Match, and Minesweeper."},"servers":[{"url":"https://wordle-game-backend.vercel.app/api/"}],"paths":{"/random-word":{"get":{"summary":"Get a random 5-letter word","responses":{"200":{"description":"A random word","content":{"application/json":{"schema":{"type":"object","properties":{"word":{"type":"string","example":"apple"}}}}}}}}},"/word-valid/{word}":{"get":{"summary":"Check if a word is valid","parameters":[{"name":"word","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validity of the word","content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean","example":true}}}}}}}}},"/connections/puzzle":{"get":{"summary":"Get a Connections puzzle","responses":{"200":{"description":"A Connections puzzle with groups","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"words":{"type":"array","items":{"type":"string"}},"difficulty":{"type":"string"},"color":{"type":"string"}}}}}}}}}}}},"/sudoku/puzzle":{"get":{"summary":"Get a Sudoku puzzle","responses":{"200":{"description":"A Sudoku puzzle and its solution","content":{"application/json":{"schema":{"type":"object","properties":{"puzzle":{"type":"array"},"solution":{"type":"array"}}}}}}}}},"/numbers/puzzle":{"get":{"summary":"Get a Numbers puzzle","responses":{"200":{"description":"A Numbers puzzle with target","content":{"application/json":{"schema":{"type":"object","properties":{"numbers":{"type":"array","items":{"type":"number"}},"target":{"type":"number"}}}}}}}}},"/memory/puzzle":{"get":{"summary":"Get a Memory Match puzzle","parameters":[{"name":"difficulty","in":"query","required":false,"schema":{"type":"string","enum":["easy","medium","hard"]}}],"responses":{"200":{"description":"A set of pairs for Memory Match","content":{"application/json":{"schema":{"type":"object","properties":{"pairs":{"type":"array","items":{"type":"string"}},"difficulty":{"type":"string"}}}}}}}}},"/minesweeper/board":{"get":{"summary":"Get a Minesweeper board","parameters":[{"name":"difficulty","in":"query","required":false,"schema":{"type":"string","enum":["easy","medium","hard"]}}],"responses":{"200":{"description":"A Minesweeper board with mine positions","content":{"application/json":{"schema":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"},"minesCount":{"type":"number"},"mines":{"type":"array","items":{"type":"object","properties":{"row":{"type":"number"},"col":{"type":"number"}}}},"difficulty":{"type":"string"}}}}}}}}}}}