{"openapi":"3.1.0","info":{"title":"\u0421\u0435\u0440\u0432\u0438\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u043f\u0435\u0447\u0430\u0442\u0438","description":"\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u043d\u0430 \u043f\u0435\u0447\u0430\u0442\u044c \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438 \u0441 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430","version":"v2024.12.27"},"servers":[{"url":"\/print"}],"paths":{"\/is_union_member":{"get":{"tags":["User"],"summary":"Check Union Member","description":"\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435.","operationId":"check_union_member_is_union_member_get","parameters":[{"name":"surname","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Surname"}},{"name":"number","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Number"}},{"name":"v","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"v2024.12.27","title":"V"}}],"responses":{"202":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"404":{"detail":"User not found","description":"Not Found"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}},"post":{"tags":["User"],"summary":"Update List","description":"\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u043e\u0432\u043e\u0433\u043e, \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0442.","operationId":"update_list_is_union_member_post","security":[{"token":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateUserList"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/file":{"post":{"tags":["File"],"summary":"Send","description":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0438\u043d \u043a\u043e\u0434 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430.\n\n\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u0438\u043d-\u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 POST \u0438 GET `\/file\/{pin}`.","operationId":"send_file_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SendInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SendOutput"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"detail":"User error"},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"detail":"PIN generate error"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/file\/{pin}":{"post":{"tags":["File"],"summary":"Upload File","description":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.\n\n\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0438\u043d-\u043a\u043e\u0434, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 POST `\/file`. \u0424\u0430\u0439\u043b \u0434\u043b\u044f \u043f\u0438\u043d-\u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e\n\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \u0424\u0430\u0439\u043b \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0434\u043e 5 000 000 \u0431\u0430\u0439\u0442\n(\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430).","operationId":"upload_file_file__pin__post","parameters":[{"name":"pin","in":"path","required":true,"schema":{"type":"string","title":"Pin"}}],"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/Body_upload_file_file__pin__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SendOutput"}}}},"400":{"detail":"File is not received","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Bad Request"},"404":{"detail":"Pin not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Not Found"},"415":{"detail":"File error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Unsupported Media Type"},"413":{"detail":"Too large file","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Request Entity Too Large"},"416":{"detail":"Invalid page request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Requested Range Not Satisfiable"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}},"patch":{"tags":["File"],"summary":"Update File Options","description":"\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0435\u0447\u0430\u0442\u0438.\n\n\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0438\u043d-\u043a\u043e\u0434, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 POST `\/file`. \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\n\u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437. \u041c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u043e\u0434\u043d\u043e\u0439.","operationId":"update_file_options_file__pin__patch","parameters":[{"name":"pin","in":"path","required":true,"schema":{"type":"string","title":"Pin"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SendInputUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SendOutput"}}}},"404":{"detail":"Pin not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Not Found"},"413":{"detail":"Too many pages","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Request Entity Too Large"},"416":{"detail":"Invalid page request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Requested Range Not Satisfiable"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}},"get":{"tags":["File"],"summary":"Print File","description":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438.\n\n\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0438\u043d-\u043a\u043e\u0434, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 POST `\/file`. \u0424\u0430\u0439\u043b \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c\n\u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 7 \u0434\u043d\u0435\u0439 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 (\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\n\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430).","operationId":"print_file_file__pin__get","parameters":[{"name":"pin","in":"path","required":true,"schema":{"type":"string","title":"Pin"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReceiveOutput"}}}},"404":{"detail":"Pin not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Not Found"},"415":{"detail":"File error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Unsupported Media Type"},"416":{"detail":"Invalid page request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StatusResponseModel"}}},"description":"Requested Range Not Satisfiable"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/qr":{"post":{"tags":["File"],"summary":"Instant Print","operationId":"instant_print_qr_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/InstantPrintCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/admin\/update":{"post":{"tags":["Admin"],"summary":"Manual Update Terminal","operationId":"manual_update_terminal_admin_update_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"token":[]}]}},"\/admin\/reboot":{"post":{"tags":["Admin"],"summary":"Reboot Terminal","operationId":"reboot_terminal_admin_reboot_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RebootInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"token":[]}]}}},"components":{"schemas":{"Body_upload_file_file__pin__post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_file__pin__post"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#\/components\/schemas\/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InstantPrintCreate":{"properties":{"qr_token":{"type":"string","title":"Qr Token"},"files":{"items":{"type":"string"},"type":"array","maxItems":10,"minItems":1,"uniqueItems":true,"title":"Files"}},"type":"object","required":["qr_token","files"],"title":"InstantPrintCreate"},"PrintOptions":{"properties":{"pages":{"type":"string","title":"Pages","description":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438","default":"","example":"2-4,6"},"copies":{"type":"integer","title":"Copies","description":"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u043f\u0438\u0439 \u0434\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438","default":1},"two_sided":{"type":"boolean","title":"Two Sided","description":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0435\u0447\u0430\u0442\u044c \u0441 \u0434\u0432\u0443\u0445 \u0441\u0442\u043e\u0440\u043e\u043d \u043b\u0438\u0441\u0442\u0430","default":false}},"type":"object","title":"PrintOptions"},"RebootInput":{"properties":{"terminal_token":{"type":"string","title":"Terminal Token"}},"type":"object","required":["terminal_token"],"title":"RebootInput"},"ReceiveOutput":{"properties":{"filename":{"type":"string","title":"Filename","description":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 https:\/\/app.profcomff.com\/print\/static\/{filename}","example":"2021-11-02-ZMNF5V...9.pdf"},"options":{"$ref":"#\/components\/schemas\/PrintOptions"}},"type":"object","required":["filename","options"],"title":"ReceiveOutput"},"SendInput":{"properties":{"surname":{"type":"string","title":"Surname","description":"\u0424\u0430\u043c\u0438\u043b\u0438\u044f","example":"\u0418\u0432\u0430\u043d\u043e\u0432"},"number":{"type":"string","title":"Number","description":"\u041d\u043e\u043c\u0435\u0440 \u043f\u0440\u043e\u0444\u0441\u043e\u044e\u0437\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u0441\u0442\u0443\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0431\u0438\u043b\u0435\u0442\u043e\u0432","example":"1015000"},"filename":{"type":"string","title":"Filename","description":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430","example":"filename.pdf"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"options":{"$ref":"#\/components\/schemas\/PrintOptions","default":{"pages":"","copies":1,"two_sided":false}}},"type":"object","required":["surname","number","filename"],"title":"SendInput"},"SendInputUpdate":{"properties":{"options":{"anyOf":[{"$ref":"#\/components\/schemas\/PrintOptions"},{"type":"null"}]}},"type":"object","title":"SendInputUpdate"},"SendOutput":{"properties":{"pin":{"type":"string","title":"Pin","description":"\u041f\u0438\u043d-\u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438","example":"OF72I1"},"options":{"$ref":"#\/components\/schemas\/PrintOptions"}},"type":"object","required":["pin","options"],"title":"SendOutput"},"StatusResponseModel":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"ru":{"type":"string","title":"Ru"}},"type":"object","required":["status","message","ru"],"title":"StatusResponseModel"},"UpdateInput":{"properties":{"terminal_token":{"type":"string","title":"Terminal Token"}},"type":"object","required":["terminal_token"],"title":"UpdateInput"},"UpdateUserList":{"properties":{"users":{"items":{"$ref":"#\/components\/schemas\/UserCreate"},"type":"array","title":"Users"}},"type":"object","required":["users"],"title":"UpdateUserList"},"UserCreate":{"properties":{"username":{"type":"string","minLength":1,"title":"Username"},"union_number":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Union Number"},"student_number":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Student Number"}},"type":"object","required":["username","union_number","student_number"],"title":"UserCreate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"token":{"type":"apiKey","in":"header","name":"Authorization"}}}}