{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/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":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"get":{"summary":"Logout","operationId":"logout_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Dashboard","operationId":"dashboard__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/words":{"get":{"summary":"Words Page","operationId":"words_page_words_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/words/add":{"post":{"summary":"Add Word","operationId":"add_word_words_add_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_add_word_words_add_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/words/edit/{word_id}":{"post":{"summary":"Edit Word","operationId":"edit_word_words_edit__word_id__post","parameters":[{"name":"word_id","in":"path","required":true,"schema":{"type":"integer","title":"Word Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_edit_word_words_edit__word_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/words/delete/{word_id}":{"post":{"summary":"Delete Word","operationId":"delete_word_words_delete__word_id__post","parameters":[{"name":"word_id","in":"path","required":true,"schema":{"type":"integer","title":"Word Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users":{"get":{"summary":"Users Page","operationId":"users_page_users_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/users/approve/{user_id}":{"post":{"summary":"Approve User","operationId":"approve_user_users_approve__user_id__post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/reject/{user_id}":{"post":{"summary":"Reject User","operationId":"reject_user_users_reject__user_id__post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}":{"get":{"summary":"User Detail","operationId":"user_detail_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics":{"get":{"summary":"Analytics","operationId":"analytics_analytics_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/import":{"get":{"summary":"Import Page","operationId":"import_page_import_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Import Csv","operationId":"import_csv_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_csv_import_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/export":{"get":{"summary":"Export Csv","operationId":"export_csv_export_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/broadcast":{"get":{"summary":"Broadcast Page","operationId":"broadcast_page_broadcast_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Broadcast Send","operationId":"broadcast_send_broadcast_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_broadcast_send_broadcast_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_add_word_words_add_post":{"properties":{"language_id":{"type":"integer","title":"Language Id"},"word":{"type":"string","title":"Word"},"meaning_tr":{"type":"string","title":"Meaning Tr"},"level":{"type":"string","title":"Level","default":"A1"},"category":{"type":"string","title":"Category","default":"genel"},"pronunciation":{"type":"string","title":"Pronunciation","default":""},"audio_url":{"type":"string","title":"Audio Url","default":""},"example":{"type":"string","title":"Example","default":""},"example_tr":{"type":"string","title":"Example Tr","default":""}},"type":"object","required":["language_id","word","meaning_tr"],"title":"Body_add_word_words_add_post"},"Body_broadcast_send_broadcast_post":{"properties":{"message":{"type":"string","title":"Message"},"target":{"type":"string","title":"Target","default":"all"}},"type":"object","required":["message"],"title":"Body_broadcast_send_broadcast_post"},"Body_edit_word_words_edit__word_id__post":{"properties":{"word":{"type":"string","title":"Word"},"meaning_tr":{"type":"string","title":"Meaning Tr"},"level":{"type":"string","title":"Level","default":"A1"},"category":{"type":"string","title":"Category","default":"genel"},"pronunciation":{"type":"string","title":"Pronunciation","default":""},"word_latin":{"type":"string","title":"Word Latin","default":""},"example":{"type":"string","title":"Example","default":""},"example_tr":{"type":"string","title":"Example Tr","default":""},"audio_url":{"type":"string","title":"Audio Url","default":""}},"type":"object","required":["word","meaning_tr"],"title":"Body_edit_word_words_edit__word_id__post"},"Body_import_csv_import_post":{"properties":{"language_id":{"type":"integer","title":"Language Id"},"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["language_id","file"],"title":"Body_import_csv_import_post"},"Body_login_login_post":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"Body_login_login_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"}}}}