{"id":27138007,"url":"https://github.com/muhammad-magdi/online-quizes","last_synced_at":"2025-04-08T04:45:02.203Z","repository":{"id":44078116,"uuid":"205037179","full_name":"Muhammad-Magdi/online-quizes","owner":"Muhammad-Magdi","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-01T20:13:54.000Z","size":2120,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-07T06:23:20.058Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Muhammad-Magdi.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}},"created_at":"2019-08-28T22:54:17.000Z","updated_at":"2023-03-07T06:23:20.059Z","dependencies_parsed_at":"2023-02-17T07:50:40.366Z","dependency_job_id":null,"html_url":"https://github.com/Muhammad-Magdi/online-quizes","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muhammad-Magdi%2Fonline-quizes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muhammad-Magdi%2Fonline-quizes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muhammad-Magdi%2Fonline-quizes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muhammad-Magdi%2Fonline-quizes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Muhammad-Magdi","download_url":"https://codeload.github.com/Muhammad-Magdi/online-quizes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779796,"owners_count":20994572,"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":"2025-04-08T04:45:01.412Z","updated_at":"2025-04-08T04:45:02.190Z","avatar_url":"https://github.com/Muhammad-Magdi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# online-quizes\n\n## Schemas:\n\n1. Quiz, Each Quiz is described by:\n   - A Required `title`.\n   - Zero or more `questions`.\n\n2. Questions, A Question is described by:\n   - A Required `statement`.\n   - A Required `degree` with non-negative value.\n   - An array of `correctAnswers`.\n   - An optional array of `wrongAnswers`.\n   - A Required `type` that's a value of:\n     - `mcq-1`: Multiple Choice Questions that must have exactly one correct Answer.\n     - `mcq-check`: Multiple Choice Questions that must have at least one correct Answer (CheckBox Style).\n     - `short-text`: Questions that have a short text answers.\n\n## Usage:\nSend requests to https://magdi-online-quizes.herokuapp.com suffixed by a valid path.\n\n## Endpoints:\n\n### Create new Quiz:\n`POST` on `https://magdi-online-quizes.herokuapp.com/quizes` with:\n- A valid quiz in the body.\n- An Authentication token in the `x-fake-token` HTTP header with the value `HelloWorld`.\n\n### Create a Question in a Quiz:\n`POST` on `https://magdi-online-quizes.herokuapp.com/quizes/:quizId/questions` with:\n- A valid question in the body.\n- An Authentication token in the `x-fake-token` HTTP header with the value `HelloWorld`.\n\n### List All Quizes:\n`GET` from `https://magdi-online-quizes.herokuapp.com/quizes`.\n\n### Show Quiz \u0026 Associated Questions:\n`GET` from `https://magdi-online-quizes.herokuapp.com/quizes/:quizId` with:\n- A valid quiz `_id`.\n\n### Delete A Question from a Quiz:\n`DELETE` from `https://magdi-online-quizes.herokuapp.com/quizes/:quizId/questions/questionId` with:\n- A valid quiz `_id`.\n- A valid question `_id`.\n- An Authentication token in the `x-fake-token` HTTP header with the value `HelloWorld`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammad-magdi%2Fonline-quizes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammad-magdi%2Fonline-quizes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammad-magdi%2Fonline-quizes/lists"}