{"openapi":"3.1.0","info":{"title":"Wzniesienie API","description":"Publiczne API strony www.wzniesienie.pl: tablica pomysłów, wytyczne i galeria projektów druku, zgłoszenia.\n\nCzytanie nie wymaga logowania. Pisanie wymaga klucza dla asystenta, który człowiek tworzy po zalogowaniu na stronie,\nw oknie „Twoje dane”: `Authorization: Bearer wz_...`. Pomysły, komentarze i projekty wysłane kluczem czekają\nna akceptację zespołu. Przed wysłaniem pokaż człowiekowi treść i poproś o zgodę. Nie wysyłaj danych osobowych.\nOpis dla asystentów: https://www.wzniesienie.pl/llms.txt, serwer MCP: /mcp.","version":"1"},"paths":{"/v1/stats":{"get":{"summary":"Stats","operationId":"stats_v1_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/ideas":{"get":{"summary":"List Ideas","operationId":"list_ideas_v1_ideas_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["pl","en"],"type":"string","default":"pl","title":"Lang"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["top","new"],"type":"string","default":"top","title":"Sort"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Idea","operationId":"post_idea_v1_ideas_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ideas/{idea_id}":{"delete":{"summary":"Delete Idea","operationId":"delete_idea_v1_ideas__idea_id__delete","parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"integer","title":"Idea Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ideas/{idea_id}/vote":{"post":{"summary":"Post Vote","operationId":"post_vote_v1_ideas__idea_id__vote_post","parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"integer","title":"Idea Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VoteIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ideas/{idea_id}/comments":{"get":{"summary":"List Comments","operationId":"list_comments_v1_ideas__idea_id__comments_get","parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"integer","title":"Idea Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Comment","operationId":"post_comment_v1_ideas__idea_id__comments_post","parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"integer","title":"Idea Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/comments/{comment_id}":{"delete":{"summary":"Delete Comment","operationId":"delete_comment_v1_comments__comment_id__delete","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/brief":{"get":{"summary":"Get Brief","operationId":"get_brief_v1_brief_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["pl","en"],"type":"string","default":"pl","title":"Lang"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/submissions":{"get":{"summary":"List Submissions","operationId":"list_submissions_v1_submissions_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["top","new"],"type":"string","default":"top","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Submit","operationId":"submit_v1_submissions_post","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_v1_submissions_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/submissions/mine":{"get":{"summary":"My Submissions","operationId":"my_submissions_v1_submissions_mine_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/submissions/{sub_id}":{"delete":{"summary":"Delete Submission","operationId":"delete_submission_v1_submissions__sub_id__delete","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/submissions/{sub_id}/vote":{"post":{"summary":"Vote","operationId":"vote_v1_submissions__sub_id__vote_post","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VoteIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/submissions/{sub_id}/files/{name}":{"get":{"summary":"Get File","operationId":"get_file_v1_submissions__sub_id__files__name__get","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_submit_v1_submissions_post":{"properties":{"kind":{"type":"string","title":"Kind"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body","default":""},"license":{"type":"string","title":"License","default":""},"ai_tools":{"type":"string","title":"Ai Tools","default":""},"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"}},"type":"object","required":["kind","title","files"],"title":"Body_submit_v1_submissions_post"},"CommentIn":{"properties":{"body":{"type":"string","maxLength":1000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"CommentIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdeaIn":{"properties":{"category":{"type":"string","title":"Category"},"title":{"type":"string","maxLength":120,"minLength":3,"title":"Title"},"body":{"type":"string","maxLength":1500,"title":"Body","default":""},"lang":{"type":"string","enum":["pl","en"],"title":"Lang","default":"pl"},"can_lead":{"type":"boolean","title":"Can Lead","default":false}},"type":"object","required":["category","title"],"title":"IdeaIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VoteIn":{"properties":{"altcha":{"type":"string","maxLength":2000,"title":"Altcha","default":""}},"type":"object","title":"VoteIn"}}}}