-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.json
More file actions
1 lines (1 loc) · 24.4 KB
/
openapi.json
File metadata and controls
1 lines (1 loc) · 24.4 KB
1
{"openapi":"3.0.3","info":{"title":"web-server","description":"","license":{"name":""},"version":"0.1.0"},"paths":{"/api/course/archive_course":{"put":{"tags":["creator_course"],"operationId":"api_archive_course_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseId"}}},"required":true},"responses":{"200":{"description":""}},"security":[{"bearerAuth":[]}]}},"/api/course/create_course_draft":{"post":{"tags":["creator_course"],"operationId":"api_create_course_draft_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseCreateDraftPayload"}}},"required":true},"responses":{"200":{"description":"Course draft created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedCourseDraft"}}}},"500":{"description":"Course already exists. The title must be unique"}},"security":[{"bearerAuth":[]}]}},"/api/course/get_attendants":{"get":{"tags":["creator_course"],"operationId":"api_get_attendants","parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"integer","format":"int64"},"example":1000},{"name":"list_options","in":"query","required":false,"schema":{"type":"string","nullable":true},"example":"{\"limit\": 5, \"offset\": 2}"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/get_course/{course_id}":{"get":{"tags":["user_course"],"operationId":"api_get_course_handler","parameters":[{"name":"course_id","in":"path","description":"ID of the course","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoursePayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/get_courses/":{"get":{"tags":["user_course"],"operationId":"api_get_courses_handler","parameters":[{"name":"filters","in":"query","required":false,"schema":{"type":"string","nullable":true},"example":"[{\"price\": {\"$gte\": 40, \"$lte\": 70}}, {\"color\": {\"$eq\": \"indigo\"}}]"},{"name":"list_options","in":"query","required":false,"schema":{"type":"string","nullable":true},"example":"{\"limit\": 5, \"offset\": 2, \"order_bys\": \"!price\"}"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoursesPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/get_created_courses":{"get":{"tags":["creator_course"],"operationId":"api_get_created_courses_handler","parameters":[{"name":"filters","in":"query","required":false,"schema":{"type":"string","nullable":true},"example":"[{\"price\": {\"$gte\": 40, \"$lte\": 70}}, {\"color\": {\"$eq\": \"indigo\"}}]"},{"name":"list_options","in":"query","required":false,"schema":{"type":"string","nullable":true},"example":"{\"limit\": 5, \"offset\": 2, \"order_bys\": \"!price\"}"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoursesPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/get_point_statistics/{course_id}":{"get":{"tags":["creator_course"],"operationId":"api_get_point_statistics_handler","parameters":[{"name":"course_id","in":"path","description":"ID of the course","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoursePointStatisticsPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/get_user_courses_registered/":{"get":{"tags":["student_course"],"operationId":"api_get_user_courses_registered_handler","parameters":[{"name":"filters","in":"query","required":false,"schema":{"type":"string","nullable":true},"example":"[{\"price\": {\"$gte\": 40, \"$lte\": 70}}, {\"color\": {\"$eq\": \"indigo\"}}]"},{"name":"list_options","in":"query","required":false,"schema":{"type":"string","nullable":true},"example":"{\"limit\": 5, \"offset\": 2, \"order_bys\": \"!price\"}"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoursesPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/change_order":{"put":{"tags":["creator_lesson"],"operationId":"api_lesson_change_order_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonChangeOrderPayload"}}},"required":true},"responses":{"200":{"description":"Lesson order updated successfully"}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/create":{"post":{"tags":["creator_lesson"],"operationId":"api_create_lesson_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonCreatePayload"}}},"required":true},"responses":{"200":{"description":"Lesson created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonCreatedPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/delete":{"delete":{"tags":["creator_lesson"],"operationId":"api_delete_lesson_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonDeletePayload"}}},"required":true},"responses":{"200":{"description":"Lesson deleted successfully"}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/change_order":{"put":{"tags":["creator_exercise"],"operationId":"api_exercise_change_order_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseChangeOrderPayload"}}},"required":true},"responses":{"200":{"description":"Exercise order updated successfully"}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/complete_attempt":{"post":{"tags":["student_exercise"],"operationId":"api_complete_attempt_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseCompletionId"}}},"required":true},"responses":{"200":{"description":"Exercise changes saved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseEstimatePayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/create":{"post":{"tags":["creator_exercise"],"operationId":"api_create_exercise_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseCreatePayload"}}},"required":true},"responses":{"200":{"description":"Exercise created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseCreatedPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/get_exercise/{exercise_id}":{"get":{"tags":["user_exercise"],"operationId":"api_get_exercise_handler","parameters":[{"name":"exercise_id","in":"path","description":"ID of the exercise","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExercisePayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/get_exercise_completions/{exercise_id}":{"get":{"tags":["user_exercise"],"operationId":"api_get_exercise_completions_handler","parameters":[{"name":"exercise_id","in":"path","description":"ID of the exercise","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExerciseCompletionPayload"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/get_exercises_completions/{lesson_id}":{"get":{"tags":["user_exercise"],"operationId":"api_get_exercises_completions_handler","parameters":[{"name":"lesson_id","in":"path","description":"ID of the lesson","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExerciseCompletionPayload"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/get_lesson_exercises/{lesson_id}":{"get":{"tags":["user_exercise"],"operationId":"api_get_lesson_exercises_handler","parameters":[{"name":"lesson_id","in":"path","description":"ID of the lesson","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExercisePayload"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/get_number_of_lesson_completed_exercises/{lesson_id}":{"get":{"tags":["user_exercise"],"operationId":"api_get_number_of_lesson_completed_exercises_handler","parameters":[{"name":"lesson_id","in":"path","description":"ID of the lesson","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"integer","format":"int64"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/save_changes":{"post":{"tags":["student_exercise"],"operationId":"api_save_changes_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseCompletionForSaveChanges"}}},"required":true},"responses":{"200":{"description":"Exercise changes saved successfully"}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/start_exercise":{"post":{"tags":["student_exercise"],"operationId":"api_start_exercise_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseId"}}},"required":true},"responses":{"200":{"description":"Exercise started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseCompletionId"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/exercise/update":{"put":{"tags":["creator_exercise"],"operationId":"api_update_exercise_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseForUpdatePayload"}}},"required":true},"responses":{"200":{"description":"Exercise updated successfully"}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/get_lesson/{lesson_id}":{"get":{"tags":["user_lesson"],"operationId":"api_get_lesson_handler","parameters":[{"name":"lesson_id","in":"path","description":"ID of the lesson","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonDataPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/get_lesson_progresses":{"get":{"tags":["student_lesson_progress"],"operationId":"api_get_lesson_progresses_handler","parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LessonProgressPayload"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/get_lessons/{course_id}":{"get":{"tags":["user_lesson"],"operationId":"api_get_lessons_handler","parameters":[{"name":"course_id","in":"path","description":"ID of the course","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LessonDataPayload"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/start_lesson":{"put":{"tags":["student_lesson"],"operationId":"api_start_lesson_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartLessonPayload"}}},"required":true},"responses":{"200":{"description":"Lesson started successfully"}},"security":[{"bearerAuth":[]}]}},"/api/course/lesson/update":{"put":{"tags":["creator_lesson"],"operationId":"api_update_lesson_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonUpdatePayload"}}},"required":true},"responses":{"200":{"description":"Lesson updated successfully"}},"security":[{"bearerAuth":[]}]}},"/api/course/publish_course":{"put":{"tags":["creator_course"],"operationId":"api_publish_course_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseId"}}},"required":true},"responses":{"200":{"description":""}},"security":[{"bearerAuth":[]}]}},"/api/course/register_for_course":{"put":{"tags":["student_course"],"operationId":"api_register_for_course_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseId"}}},"required":true},"responses":{"200":{"description":""}},"security":[{"bearerAuth":[]}]}},"/api/course/set_course_img/{course_id}":{"put":{"tags":["creator_course"],"operationId":"api_set_course_img_handler","parameters":[{"name":"course_id","in":"path","description":"ID of the course for which we set an avatar","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"multipart/formdata":{"schema":{"type":"string","format":"binary"}}},"required":true},"responses":{"200":{"description":"Course image successfully set"}},"security":[{"bearerAuth":[]}]}},"/api/course/unsubscribe_from_course":{"put":{"tags":["student_course"],"operationId":"api_unsubscribe_from_course_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseId"}}},"required":true},"responses":{"200":{"description":""}},"security":[{"bearerAuth":[]}]}},"/api/course/update":{"put":{"tags":["creator_course"],"operationId":"api_update_course_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseUpdatePayload"}}},"required":true},"responses":{"200":{"description":""}},"security":[{"bearerAuth":[]}]}},"/api/login":{"post":{"tags":["login"],"operationId":"api_login_handler","responses":{"200":{"description":"Login successful"},"403":{"description":"Login failed"}},"security":[{"basicAuth":[]}]}},"/api/refresh_token":{"post":{"tags":["login"],"operationId":"api_refresh_access_token_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenPayload"}}},"required":true},"responses":{"200":{"description":"Token refreshed successfully"},"403":{"description":"Token refresh failed"}}}},"/api/register":{"post":{"tags":["register"],"operationId":"api_register_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPayload"}}},"required":true},"responses":{"200":{"description":"Register successful"}}}},"/api/user/change_pwd":{"put":{"tags":["user"],"operationId":"api_change_pwd_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserChangePwdPayload"}}},"required":true},"responses":{"200":{"description":""}},"security":[{"bearerAuth":[]}]}},"/api/user/get_user/{user_id}":{"get":{"tags":["user"],"operationId":"api_get_user_by_id_handler","parameters":[{"name":"user_id","in":"path","description":"ID of the user","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDataPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/user/get_user_data":{"get":{"tags":["user"],"operationId":"api_get_user_data_handler","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDataPayload"}}}}},"security":[{"bearerAuth":[]}]}},"/api/user/update":{"put":{"tags":["user"],"operationId":"api_update_user_handler","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdatePayload"}}},"required":true},"responses":{"200":{"description":"Course updated successfully"}},"security":[{"bearerAuth":[]}]}}},"components":{"schemas":{"CourseCreateDraftPayload":{"type":"object","required":["title","description","course_type","price","color"],"properties":{"color":{"type":"string"},"course_type":{"type":"string"},"description":{"type":"string"},"price":{"type":"number","format":"double"},"title":{"type":"string"}}},"CourseFilterPayload":{"type":"object","properties":{"filters":{"type":"string","nullable":true},"list_options":{"type":"string","nullable":true}}},"CourseId":{"type":"object","required":["course_id"],"properties":{"course_id":{"type":"integer","format":"int64"}}},"CoursePayload":{"type":"object","required":["id","title","description","course_type","price","color","state"],"properties":{"color":{"type":"string"},"course_type":{"type":"string"},"description":{"type":"string"},"id":{"type":"integer","format":"int64"},"img_url":{"type":"string","nullable":true},"price":{"type":"number","format":"double"},"published_date":{"type":"integer","format":"int64","nullable":true},"state":{"$ref":"#/components/schemas/CourseStatePayload"},"title":{"type":"string"}}},"CoursePointStatisticsPayload":{"type":"object","required":["max_points","users_points"],"properties":{"max_points":{"type":"integer","format":"int64"},"users_points":{"type":"array","items":{"$ref":"#/components/schemas/UserPointsPayload"}}}},"CourseStatePayload":{"type":"string","enum":["Draft","Published","Archived"]},"CourseUpdatePayload":{"type":"object","required":["id"],"properties":{"color":{"type":"string","nullable":true},"course_type":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"id":{"type":"integer","format":"int64"},"price":{"type":"number","format":"double","nullable":true},"title":{"type":"string","nullable":true}}},"CoursesPayload":{"type":"object","required":["courses","count"],"properties":{"count":{"type":"integer","format":"int64"},"courses":{"type":"array","items":{"$ref":"#/components/schemas/CoursePayload"}}}},"CreatedCourseDraft":{"type":"object","required":["course_id"],"properties":{"course_id":{"type":"integer","format":"int64"}}},"ExerciseChangeOrderPayload":{"type":"object","required":["exercise_id","order"],"properties":{"exercise_id":{"type":"integer","format":"int64"},"order":{"type":"integer","format":"int32"}}},"ExerciseCompletionForSaveChanges":{"type":"object","required":["exercise_completion_id","body"],"properties":{"body":{},"exercise_completion_id":{"type":"integer","format":"int64"}}},"ExerciseCompletionId":{"type":"object","required":["exercise_completion_id"],"properties":{"exercise_completion_id":{"type":"integer","format":"int64"}}},"ExerciseCompletionPayload":{"type":"object","required":["exercise_completion_id","exercise_id","user_id","number_of_attempts","date_started","state"],"properties":{"body":{"nullable":true},"date_last_changes":{"type":"integer","format":"int64","nullable":true},"date_started":{"type":"integer","format":"int64"},"exercise_completion_id":{"type":"integer","format":"int64"},"exercise_id":{"type":"integer","format":"int64"},"max_points":{"type":"number","format":"float","nullable":true},"number_of_attempts":{"type":"integer","format":"int32"},"points_scored":{"type":"number","format":"float","nullable":true},"state":{"type":"string"},"user_id":{"type":"integer","format":"int64"}}},"ExerciseCreatePayload":{"type":"object","required":["lesson_id","title","description","exercise_type","exercise_body","answer_body","difficult"],"properties":{"answer_body":{},"description":{"type":"string"},"difficult":{"type":"string"},"exercise_body":{},"exercise_type":{"type":"string"},"lesson_id":{"type":"integer","format":"int64"},"time_to_complete":{"type":"integer","format":"int32","nullable":true},"title":{"type":"string"}}},"ExerciseCreatedPayload":{"type":"object","required":["exercise_id"],"properties":{"exercise_id":{"type":"integer","format":"int64"}}},"ExerciseEstimatePayload":{"type":"object","required":["points","max_points","difficulty","state"],"properties":{"difficulty":{"type":"string"},"max_points":{"type":"number","format":"float"},"points":{"type":"number","format":"float"},"state":{"type":"string"}}},"ExerciseForUpdatePayload":{"type":"object","required":["exercise_id","is_retake_exercise"],"properties":{"answer_body":{"nullable":true},"description":{"type":"string","nullable":true},"difficult":{"type":"string","nullable":true},"exercise_body":{"nullable":true},"exercise_id":{"type":"integer","format":"int64"},"exercise_type":{"type":"string","nullable":true},"is_retake_exercise":{"type":"boolean"},"time_to_complete":{"type":"integer","format":"int64","nullable":true},"title":{"type":"string","nullable":true}}},"ExerciseId":{"type":"object","required":["exercise_id"],"properties":{"exercise_id":{"type":"integer","format":"int64"}}},"ExercisePayload":{"type":"object","required":["exercise_id","lesson_id","title","description","exercise_type","exercise_body","answer_body","exercise_order","difficult"],"properties":{"answer_body":{},"description":{"type":"string"},"difficult":{"type":"string"},"exercise_body":{},"exercise_id":{"type":"integer","format":"int64"},"exercise_order":{"type":"integer","format":"int32"},"exercise_type":{"type":"string"},"lesson_id":{"type":"integer","format":"int64"},"time_to_complete":{"type":"integer","format":"int32","nullable":true},"title":{"type":"string"}}},"GetAttendatsPayload":{"type":"object","required":["course_id"],"properties":{"course_id":{"type":"integer","format":"int64"},"list_options":{"type":"string","nullable":true}}},"GetLessonProgressesPayload":{"type":"object","required":["course_id"],"properties":{"course_id":{"type":"integer","format":"int64"}}},"LessonChangeOrderPayload":{"type":"object","required":["lesson_id","order"],"properties":{"lesson_id":{"type":"integer","format":"int64"},"order":{"type":"integer","format":"int32"}}},"LessonCreatePayload":{"type":"object","required":["course_id","title","description"],"properties":{"course_id":{"type":"integer","format":"int64"},"description":{"type":"string"},"title":{"type":"string"}}},"LessonCreatedPayload":{"type":"object","required":["lesson_id"],"properties":{"lesson_id":{"type":"integer","format":"int64"}}},"LessonDataPayload":{"type":"object","required":["id","course_id","title","lesson_order","description"],"properties":{"course_id":{"type":"integer","format":"int64"},"description":{"type":"string"},"id":{"type":"integer","format":"int64"},"lesson_order":{"type":"integer","format":"int32"},"title":{"type":"string"}}},"LessonDeletePayload":{"type":"object","required":["lesson_id"],"properties":{"lesson_id":{"type":"integer","format":"int64"}}},"LessonProgressPayload":{"type":"object","required":["user_id","lesson_id","date_started","state"],"properties":{"date_complete":{"type":"integer","format":"int64","nullable":true},"date_started":{"type":"integer","format":"int64"},"lesson_id":{"type":"integer","format":"int64"},"state":{"type":"string"},"user_id":{"type":"integer","format":"int64"}}},"LessonUpdatePayload":{"type":"object","required":["lesson_id","title","description"],"properties":{"description":{"type":"string"},"lesson_id":{"type":"integer","format":"int64"},"title":{"type":"string"}}},"RefreshTokenPayload":{"type":"object","required":["refresh_token"],"properties":{"refresh_token":{"type":"string","example":"dGVzdHVzZXI.MjAyNC0wOC0xN1QwNDo0ODowOS4xNjq3XjU0NTha.MjcedibXB_UadS2vIG2lPfwlukqw5Ir-DIO_zwwmn9dQqd0oeozAi3Aa99f4UlC8ETrJjRiZNMHjyIsyEaqgDA"}}},"RegisterPayload":{"type":"object","required":["username","pwd"],"properties":{"pwd":{"type":"string","example":"test_pwd"},"username":{"type":"string","example":"username_test"}}},"StartLessonPayload":{"type":"object","required":["lesson_id"],"properties":{"lesson_id":{"type":"integer","format":"int64"}}},"UserChangePwdPayload":{"type":"object","required":["pwd_clear","new_pwd_clear"],"properties":{"new_pwd_clear":{"type":"string"},"pwd_clear":{"type":"string"}}},"UserDataPayload":{"type":"object","required":["id","username"],"properties":{"id":{"type":"integer","format":"int64"},"username":{"type":"string"}}},"UserPayload":{"type":"object","required":["id","username","date_registered","number_of_completed_lessons"],"properties":{"date_registered":{"type":"integer","format":"int64"},"id":{"type":"integer","format":"int64"},"number_of_completed_lessons":{"type":"integer","format":"int64"},"username":{"type":"string"}}},"UserPointsPayload":{"type":"object","required":["user_id","username","points"],"properties":{"points":{"type":"number","format":"float"},"user_id":{"type":"integer","format":"int64"},"username":{"type":"string"}}},"UserUpdatePayload":{"type":"object","required":["username"],"properties":{"username":{"type":"string"}}},"UsersPayload":{"type":"object","required":["users","count"],"properties":{"count":{"type":"integer","format":"int64"},"users":{"type":"array","items":{"$ref":"#/components/schemas/UserPayload"}}}}},"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"},"bearerAuth":{"type":"http","scheme":"bearer"}}},"tags":[{"name":"LQRL","description":"A great Rust backend API for the awesome LQRL project"}]}