{"openapi":"3.1.0","info":{"title":"COMFACE Backoffice","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/login":{"get":{"summary":"Login Page","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Login","operationId":"login_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"post":{"summary":"Logout","operationId":"logout_logout_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_logout_logout_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/activate/{token}":{"get":{"summary":"Activate Page","operationId":"activate_page_activate__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard":{"get":{"summary":"Dashboard","operationId":"dashboard_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/articles":{"get":{"summary":"Articles","operationId":"articles_articles_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"","title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Add Article","operationId":"add_article_articles_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_add_article_articles_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/categories":{"post":{"summary":"Add Category","operationId":"add_category_categories_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_add_category_categories_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/articles/{article_id}":{"post":{"summary":"Update Article","operationId":"update_article_articles__article_id__post","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"integer","title":"Article Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_article_articles__article_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/articles/{article_id}/delete":{"post":{"summary":"Delete Article","operationId":"delete_article_articles__article_id__delete_post","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"integer","title":"Article Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_delete_article_articles__article_id__delete_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cashbook":{"get":{"summary":"Cashbook","operationId":"cashbook_cashbook_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date To"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Add Cashbook","operationId":"add_cashbook_cashbook_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_add_cashbook_cashbook_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cashbook/export/{export_format}":{"get":{"summary":"Export Cashbook","operationId":"export_cashbook_cashbook_export__export_format__get","parameters":[{"name":"export_format","in":"path","required":true,"schema":{"type":"string","title":"Export Format"}},{"name":"date_from","in":"query","required":true,"schema":{"type":"string","title":"Date From"}},{"name":"date_to","in":"query","required":true,"schema":{"type":"string","title":"Date To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/employees":{"get":{"summary":"Employees","operationId":"employees_employees_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Add Employee","operationId":"add_employee_employees_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/employees/{employee_id}":{"post":{"summary":"Update Employee","operationId":"update_employee_employees__employee_id__post","parameters":[{"name":"employee_id","in":"path","required":true,"schema":{"type":"integer","title":"Employee Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/health":{"post":{"summary":"Admin Health","operationId":"admin_health_api_admin_health_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/activation-links":{"post":{"summary":"Create Activation Link","operationId":"create_activation_link_api_admin_activation_links_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/module-state":{"post":{"summary":"Set Module State","operationId":"set_module_state_api_admin_module_state_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/users":{"post":{"summary":"Admin Users","operationId":"admin_users_api_admin_users_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/users/state":{"post":{"summary":"Admin User State","operationId":"admin_user_state_api_admin_users_state_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/pos/changes":{"get":{"summary":"Pos Changes","operationId":"pos_changes_api_pos_changes_get","parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pos/ack":{"post":{"summary":"Pos Ack","operationId":"pos_ack_api_pos_ack_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/pos/snapshot":{"post":{"summary":"Pos Snapshot","operationId":"pos_snapshot_api_pos_snapshot_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_add_article_articles_post":{"properties":{"name":{"type":"string","title":"Name"},"sku":{"type":"string","title":"Sku","default":""},"ean":{"type":"string","title":"Ean","default":""},"price":{"type":"string","title":"Price","default":"0"},"purchase_price":{"type":"string","title":"Purchase Price","default":"0"},"category_id":{"type":"string","title":"Category Id","default":""},"stock":{"type":"string","title":"Stock","default":"0"},"minimum_stock":{"type":"string","title":"Minimum Stock","default":"0"},"track_stock":{"type":"string","title":"Track Stock","default":""},"csrf":{"type":"string","title":"Csrf"}},"type":"object","required":["name","csrf"],"title":"Body_add_article_articles_post"},"Body_add_cashbook_cashbook_post":{"properties":{"entry_date":{"type":"string","title":"Entry Date"},"entry_type":{"type":"string","title":"Entry Type"},"amount":{"type":"string","title":"Amount"},"description":{"type":"string","title":"Description"},"receipt_number":{"type":"string","title":"Receipt Number","default":""},"csrf":{"type":"string","title":"Csrf"}},"type":"object","required":["entry_date","entry_type","amount","description","csrf"],"title":"Body_add_cashbook_cashbook_post"},"Body_add_category_categories_post":{"properties":{"name":{"type":"string","title":"Name"},"csrf":{"type":"string","title":"Csrf"}},"type":"object","required":["name","csrf"],"title":"Body_add_category_categories_post"},"Body_delete_article_articles__article_id__delete_post":{"properties":{"csrf":{"type":"string","title":"Csrf"}},"type":"object","required":["csrf"],"title":"Body_delete_article_articles__article_id__delete_post"},"Body_login_login_post":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["username","password"],"title":"Body_login_login_post"},"Body_logout_logout_post":{"properties":{"csrf":{"type":"string","title":"Csrf"}},"type":"object","required":["csrf"],"title":"Body_logout_logout_post"},"Body_update_article_articles__article_id__post":{"properties":{"name":{"type":"string","title":"Name"},"sku":{"type":"string","title":"Sku","default":""},"ean":{"type":"string","title":"Ean","default":""},"price":{"type":"string","title":"Price"},"purchase_price":{"type":"string","title":"Purchase Price","default":"0"},"category_id":{"type":"string","title":"Category Id","default":""},"stock":{"type":"string","title":"Stock","default":"0"},"minimum_stock":{"type":"string","title":"Minimum Stock","default":"0"},"track_stock":{"type":"string","title":"Track Stock","default":""},"active":{"type":"string","title":"Active","default":""},"csrf":{"type":"string","title":"Csrf"}},"type":"object","required":["name","price","csrf"],"title":"Body_update_article_articles__article_id__post"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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"}}}}