{"id":20862679,"url":"https://github.com/alicbm/api-quizz","last_synced_at":"2026-04-13T19:32:11.351Z","repository":{"id":100132661,"uuid":"594427154","full_name":"Alicbm/api-quizz","owner":"Alicbm","description":"Quizz Project API","archived":false,"fork":false,"pushed_at":"2023-02-04T17:21:13.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-12T21:01:05.422Z","etag":null,"topics":["api-rest","cors","crud-api","expressjs","javascript","middleware","nodejs","nodemon","vercel-deployment"],"latest_commit_sha":null,"homepage":"https://api-quizz.vercel.app/api/v1","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alicbm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-28T14:23:30.000Z","updated_at":"2023-01-28T18:57:17.000Z","dependencies_parsed_at":"2023-05-12T12:00:38.383Z","dependency_job_id":null,"html_url":"https://github.com/Alicbm/api-quizz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Alicbm/api-quizz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alicbm%2Fapi-quizz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alicbm%2Fapi-quizz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alicbm%2Fapi-quizz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alicbm%2Fapi-quizz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alicbm","download_url":"https://codeload.github.com/Alicbm/api-quizz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alicbm%2Fapi-quizz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api-rest","cors","crud-api","expressjs","javascript","middleware","nodejs","nodemon","vercel-deployment"],"created_at":"2024-11-18T05:25:01.106Z","updated_at":"2026-04-13T19:32:11.324Z","avatar_url":"https://github.com/Alicbm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# api-quizz\n\nHello!\n\nWelcome to my profile, this time I have created an API to use it in one of my apps ([Quizz](https://github.com/Alicbm/quizz \"Quizz\")) which is a quiz app, if you want to know a bit more about the quiz app you can click on the before link.\n\nThe API has 7 categories, with 15 questions for each category, at the moment it is the first version, then I will create more categories and more questions. Here you can create new questions, update the questions, you can even delete the questions (for now the API does not have data persistence, it does not connect to a database), however you can create your own data persistence.\n\n## We have the following question categories to choose from:\n\nYou can click on any category to see the API for that category:\n\n- General culture\n- Animals\n- Sports\n- Cities\n- JavaScript\n- HTML\n- CSS\n\n## How to use it? :brain:\n### GET:\n\n- ### All results: \n\n**Main url** : `api-quizz.vercel.app/api/v1` \n\nWith this url you have access to all the categories and all the questions, in total there are 105 questions. However, if you want to access a specific category, you can go to the following url:\n\n`api-quizz.vercel.app/api/v1/nameCategory`  \n\n###### Example: \n1. [api-quizz.vercel.app/api/v1/animals](https://api-quizz.vercel.app/api/v1/animals \"api-quizz.vercel.app/api/v1/animals\")\n2. [api-quizz.vercel.app/api/v1/sports](https://api-quizz.vercel.app/api/v1/sports \"api-quizz.vercel.app/api/v1/sports\")\n3. [api-quizz.vercel.app/api/v1/cities](https://api-quizz.vercel.app/api/v1/cities \"api-quizz.vercel.app/api/v1/cities\")\n4. [api-quizz.vercel.app/api/v1/general-culture](https://api-quizz.vercel.app/api/v1/general-culture \"api-quizz.vercel.app/api/v1/general-culture\")\n5. [api-quizz.vercel.app/api/v1/javascript](https://api-quizz.vercel.app/api/v1/javascript \"api-quizz.vercel.app/api/v1/javascript\")\n6. [api-quizz.vercel.app/api/v1/html](https://api-quizz.vercel.app/api/v1/html \"api-quizz.vercel.app/api/v1/html\")\n7. [api-quizz.vercel.app/api/v1/css](https://api-quizz.vercel.app/api/v1/css \"api-quizz.vercel.app/api/v1/css\")\n\n- ### Specific results:\n\nTo get a specific result you need to be in a specific category and type the \"id\" you want to get.\n\n`api-quizz.vercel.app/api/v1/nameCategory/id`\n\n###### Example:\n\n1. [api-quizz.vercel.app/api/v1/animals/5](https://api-quizz.vercel.app/api/v1/animals/5 \"api-quizz.vercel.app/api/v1/animals/5\")\n\n- ### Query parameters:\n\nIn this API there is an option to choose the amount of results you want to get, through the parameter \"size\", to use this parameter you must be in a specific category, here is the main url for this:\n\n`api-quizz.vercel.app/api/v1/nameCategory?size=amount`\n\n###### Example:\n1. [api-quizz.vercel.app/api/v1/animals?size=4](https://api-quizz.vercel.app/api/v1/animals?size=4 \"api-quizz.vercel.app/api/v1/animals?size=4\")\n\n\n### POST:\n\nTo use this method you must be in a specific category\n\n**Main url** : `api-quizz.vercel.app/api/v1/nameCategory` \n\nAnother option that you have is to create new questions, through the POST method, but for this it is necessary that you send the complete question, with the following requirements:\n- An id.\n- A question.\n- Four response options, with internal requirements:\n   1. text: answer choice\n   2. replay: if the answer is correct\n\n###### Example:\n\n`api-quizz.vercel.app/api/v1/animals/`\n\n\t{\n\t\t  \"id\": 16,\n\t\t\t\"ask\": \"Questions number 16\",\n\t\t\t\"optionA\": {\n\t\t\t\t\"text\": \"option one\",\n\t\t\t\t\"replay\": false\n\t\t\t},\n\t\t\t\"optionB\": {\n\t\t\t\t\"text\": \"option two\",\n\t\t\t\t\"replay\": true\n\t\t\t},\n\t\t\t\"optionC\": {\n\t\t\t\t\"text\": \"option three\",\n\t\t\t\t\"replay\": false\n\t\t\t},\n\t\t\t\"optionD\": {\n\t\t\t\t\"text\": \"option four\",\n\t\t\t\t\"replay\": false\n\t\t\t}\n\t}\n\n### PATCH:\n\nTo use this method you must be in a specific category\n\n**Main url** : `api-quizz.vercel.app/api/v1/nameCategory` \n\nAnother option that you have is to update questions, through the PATCH method. You just have to write to an object the specific property you want to change. Not is necessary that you write all properties.\n\n###### Example:\n\n\t{\n\t\t  \"optionA\": {\n\t\t\t\t\"text\": \"option A modified\",\n\t\t\t\t\"replay\": false\n\t\t\t}\n\t}\n\n\n### DELETE:\n\nTo delete a question, you only need the id of the question you want to delete, that id would go after the category where it will be deleted.\n\n`api-quizz.vercel.app/api/v1/nameCategory/id`\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicbm%2Fapi-quizz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falicbm%2Fapi-quizz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicbm%2Fapi-quizz/lists"}