{"components":{"schemas":{"CalendarDay":{"properties":{"date":{"type":"string"},"date_cz":{"type":"string"},"events":{"items":{"$ref":"#\/components\/schemas\/CalendarEvent"},"type":"array"}},"type":"object"},"CalendarEvent":{"properties":{"allday":{"type":"boolean"},"start":{"type":"string"},"summary":{"type":"string"}},"type":"object"},"DefaultResponse":{"properties":{"errors":{"items":{"properties":{"message":{"type":"string"},"path":{"type":"string"}},"required":["message"],"type":"object"},"type":"array"}},"required":["errors"],"type":"object"},"Group":{"description":"Skupina","properties":{"code":{"description":"Kód skupiny","type":"string"},"id":{"description":"Identifikátor skupiny na fóru","type":"integer"},"members_count":{"description":"Počet clenu","type":"integer"},"members_group_size":{"$ref":"#\/components\/schemas\/GroupSize"},"name":{"description":"Název skupiny","type":"string"}},"type":"object"},"GroupInList":{"properties":{"code":{"nullable":true,"type":"string"},"forum_id":{"readOnly":true,"type":"integer"},"id":{"readOnly":true,"type":"integer"},"name":{"readOnly":true,"type":"string"},"uuid":{"readOnly":true,"type":"string"}},"type":"object"},"GroupSize":{"description":"Velikost skupiny","properties":{"full":{"description":"Počet členů k zahájení jednání","type":"integer"},"half":{"description":"Počet členů k zařazení na již zahájené jednání","type":"integer"}},"type":"object"},"OctoUser":{"properties":{"displayname":{"readOnly":true,"type":"string"},"groups":{"description":"Skupiny uživatele","items":{"type":"integer"},"nullable":true,"type":"array"},"id":{"readOnly":true,"type":"integer"},"username":{"readOnly":true,"type":"string"},"uuid":{"readOnly":true,"type":"string"}},"type":"object"},"User":{"description":"Uživatel","properties":{"displayname":{"description":"Jméno","type":"string"},"forum_id":{"description":"Identifikator z pirátského fóru","nullable":true,"type":"integer"},"groups":{"description":"Skupiny uživatele","items":{"$ref":"#\/components\/schemas\/Group"},"nullable":true,"type":"array"},"username":{"description":"Uživatelské jméno","type":"string"}},"type":"object"},"UserInList":{"description":"Uživatel","properties":{"displayname":{"description":"Jméno","type":"string"},"forum_id":{"readOnly":true,"type":"integer"},"username":{"description":"Uživatelské jméno","type":"string"}},"type":"object"},"VotesMunicipality":{"description":"Vysledky voleb v obci","properties":{"ballots":{"description":"Platné hlasy","type":"integer"},"nuts":{"description":"Kod obce","type":"string"},"participation":{"description":"Volební účast v %","type":"number"},"percents":{"description":"Podil hlasů v %","type":"number"},"voters":{"description":"Voliči v seznamu","type":"integer"},"votes":{"description":"Počet hlasů","type":"integer"}},"type":"object"}}},"info":{"contact":{"email":"andrej@x2.cz","name":"Andrej Ramašeuski"},"description":"Piratské Integrační API","license":{"name":"Artistic License 2.0","url":"https:\/\/www.perlfoundation.org\/artistic-license-20.html"},"title":"Piratské Integrační API","version":"2.2.2"},"openapi":"3.0.3","parameters":{},"paths":{"\/calendars\/{token}":{"get":{"operationId":"Calendar","parameters":[{"description":"Calendar token","in":"path","name":"token","required":true,"schema":{"example":"ZAimXbmknYDoiWYW","type":"string"}},{"description":"Začátek období","in":"query","name":"begin","schema":{"type":"string"}},{"description":"Počet dnů","in":"query","name":"days","schema":{"default":30,"maximum":365,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"days":{"description":"Seznam udalosti","items":{"$ref":"#\/components\/schemas\/CalendarDay"},"type":"array"},"name":{"description":"Nazev","type":"string"},"owner":{"description":"Vlastnik (login)","type":"string"},"url":{"description":"Webova adresa","type":"string"}},"type":"object"}}},"description":"Veřejný kalendář"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Veřejný kalendář z mraku","tags":["events"],"x-mojo-to":"calendars#get"}},"\/csu\/votes\/{type}\/{year}\/municipalities":{"get":{"operationId":"CSUVotesResults","parameters":[{"description":"Typ voleb","in":"path","name":"type","required":true,"schema":{"enum":["euro","regional","parliament"],"example":"regional","type":"string"}},{"description":"Rok voleb","in":"path","name":"year","required":true,"schema":{"enum":[2008,2012,2016,2019,2020,2021,2024],"example":2020,"type":"integer"}},{"description":"Kod kraje (dle ciselniku NUTS)","in":"query","name":"region","required":true,"schema":{"enum":["CZ020","CZ031","CZ032","CZ041","CZ042","CZ051","CZ052","CZ053","CZ063","CZ064","CZ071","CZ072","CZ080"],"example":"CZ053","type":"string"}},{"description":"Cislo volebniho subjektu","in":"query","name":"subject","required":true,"schema":{"example":19,"type":"integer"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/VotesMunicipality"},"type":"array"}}},"description":"Vysledky voleb"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Volební vysledky za okresy a obce","tags":["votes"],"x-mojo-to":"CSU::Votes#municipalities"}},"\/groups":{"get":{"operationId":"Groups","parameters":[{"description":"Search query","in":"query","name":"search","schema":{"example":"Media","type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/GroupInList"},"type":"array"}}},"description":"Seznam skupin z foru"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Hledani skupiny na foru","tags":["octopus","groups"],"x-mojo-to":"Forum#groups"}},"\/groups\/{id}":{"get":{"operationId":"Group","parameters":[{"description":"Identifikator","in":"path","name":"id","required":true,"schema":{"example":35,"type":"integer"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Group"}}},"description":"Skupina"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Uzivatelska skupina z fora","tags":["groups"],"x-mojo-to":"forum#group"}},"\/groups\/{id}\/has_member":{"get":{"operationId":"UserInGroup","parameters":[{"description":"Identifikátor skupiny","in":"path","name":"id","required":true,"schema":{"example":35,"type":"integer"}},{"description":"Uživatelské jméno","in":"query","name":"username","required":true,"schema":{"example":"andrej.ramaseuski","type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"has_user":{"type":"boolean"}},"type":"object"}}},"description":"Členstvi ve skupine"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Oveřeni členstvi uživatele ve skupine","tags":["accounts"],"x-mojo-to":"forum#group_has_member"}},"\/groups\/{id}\/members":{"get":{"operationId":"GroupMembers","parameters":[{"description":"identifikator skupiny","in":"path","name":"id","required":true,"schema":{"example":35,"type":"integer"}},{"description":"Doplnovat email generovany z username","in":"query","name":"with_generated_email","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/UserInList"},"type":"array"}}},"description":"Seznam uzivatelu"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Uzivatele fora ve skupine","tags":["accounts"],"x-mojo-to":"forum#group_members"}},"\/members_group_size":{"get":{"description":"Skupinou členů se rozumí jen taková skupina, která čítá aspoň stanovený počet členů strany, kteří podpořili určitý návrh. Počet členů se stanoví u návrhu na zahájení jednání jako dvojnásobek druhé odmocniny z počtu přítomných členů, nejméně však jedna setina a nejvýše jedna pětina z počtu přítomných členů. U návrhu na již zahájeném jednání se takto stanovený počet snižuje na polovinu.\n","operationId":"MemberGroupSize","parameters":[{"description":"Celkový počet clenů","in":"query","name":"team_size","schema":{"example":113,"maximum":1000000,"minimum":1,"type":"integer"}}],"responses":{"200":{"$ref":"#\/components\/schemas\/GroupSize"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Velikost skupiny členů","tags":["members"],"x-mojo-to":"members#group_size"}},"\/octopus\/groups":{"get":{"operationId":"OctopusGroups","parameters":[{"description":"Search query","in":"query","name":"search","schema":{"example":"Media","type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/GroupInList"},"type":"array"}}},"description":"Seznam skupin"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Hledani skupiny v Chobotnici","tags":["octopus"],"x-mojo-to":"Octopus#groups"}},"\/octopus\/groups\/{ids}":{"get":{"operationId":"OctopusGroupsByIds","parameters":[{"description":"Search query","in":"path","name":"ids","required":true,"schema":{"example":[1,2,3],"items":{"type":"integer"},"type":"array"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/GroupInList"},"type":"array"}}},"description":"Seznam skupin"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Skupiny z Chobotnici dle id","tags":["octopus"],"x-mojo-to":"Octopus#groups_by_id"}},"\/octopus\/users":{"get":{"operationId":"OctopusUsers","parameters":[{"description":"Search query","in":"query","name":"search","schema":{"example":"Ivan","type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/OctoUser"},"type":"array"}}},"description":"Seznam uzivatelu"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Hledani uzivatele v Chobotnici","tags":["octopus"],"x-mojo-to":"Octopus#users"}},"\/octopus\/users\/{id}":{"get":{"operationId":"OctopusUser","parameters":[{"description":"Identifikator (interni nebo keycloak)","in":"path","name":"id","required":true,"schema":{"example":"32433ac8-671e-44aa-861b-cc845e55b9e6","type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OctoUser"}}},"description":"Uzivatel v chubotnici"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Uzivatel v Chobotnici","tags":["octopus"],"x-mojo-to":"Octopus#user"}},"\/user":{"get":{"operationId":"User","parameters":[{"description":"Uzivatelske jmeno","in":"query","name":"username","required":true,"schema":{"example":"andrej.ramaseuski","type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"description":"Uzivatel"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Uzivatel","tags":["users"],"x-mojo-to":"forum#user"}},"\/users":{"get":{"operationId":"Users","parameters":[{"description":"Search query","in":"query","name":"search","required":true,"schema":{"example":"bartos","minLength":2,"type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/UserInList"},"type":"array"}}},"description":"Seznam uzivatelu"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Seznam uzivatelu","tags":["users"],"x-mojo-to":"forum#users"}}},"servers":[{"description":"Production server","url":"http:\/\/iapi.pirati.cz\/v1"}]}