{"id":18249017,"url":"https://github.com/samplec0de/duels-miniapp-api","last_synced_at":"2025-06-24T19:34:00.761Z","repository":{"id":138049435,"uuid":"251038109","full_name":"samplec0de/duels-miniapp-api","owner":"samplec0de","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-09T19:34:30.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T15:49:46.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samplec0de.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-29T13:26:09.000Z","updated_at":"2020-04-09T19:34:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c3505b5-3a14-4be0-a0d2-8ee4718cf968","html_url":"https://github.com/samplec0de/duels-miniapp-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samplec0de%2Fduels-miniapp-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samplec0de%2Fduels-miniapp-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samplec0de%2Fduels-miniapp-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samplec0de%2Fduels-miniapp-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samplec0de","download_url":"https://codeload.github.com/samplec0de/duels-miniapp-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247918927,"owners_count":21018044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T09:38:56.689Z","updated_at":"2025-04-08T19:56:09.627Z","avatar_url":"https://github.com/samplec0de.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API для VK MiniApp \"Школьные дуэли\"\n\nДоступные на данный момент предметы: ('math', 'russian', 'informatics', 'english')\n\n**GET** */tasks/random/\u003csubject\u003e/\u003cvk_user_id\u003e*\n\nПолучить случайную задачу\n\nsubject: предмет \u003cbr/\u003e\nvk_user_id: идентификатор пользователя от вк \u003cbr/\u003e\n\nРезультат: { \u003cbr/\u003e\n            'task_id': string \u003cbr/\u003e\n            'subject': string, предмет \u003cbr/\u003e\n            'text': string, \u003cbr/\u003e\n            'variants': list, элементы string \u003cbr/\u003e\n        } \u003cbr/\u003e\n\n\n**POST** */check_answer*\n\nПроверить правильность ответа \u003cbr /\u003e\nanswer: int, индекс ответа пользователя \u003cbr /\u003e\nsubject: string, предмет \u003cbr /\u003e\ntask_id: string, айди задачи \u003cbr /\u003e\nvk_user_id: integer, идентификатор пользователя от вк \u003cbr/\u003e\n\nРезультат: {\"correct\": boolean}\n\n\n**GET** */correct_answer/\u003csubject\u003e/\u003ctask_id\u003e/\u003cvk_user_id\u003e*\n\nПолучить правильный ответ. Можно вызывать только для задач, которые вернул /tasks/random\n\nsubject: string, предмет \u003cbr/\u003e\ntask_id: string, айди задачи \u003cbr/\u003e\nvk_user_id: идентификатор пользователя от вк\n\nРезультат: {\"answer\": \u003cверный ответ строкой\u003e, \"points\": количество очков за задачу, int/float (пока int)}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamplec0de%2Fduels-miniapp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamplec0de%2Fduels-miniapp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamplec0de%2Fduels-miniapp-api/lists"}