{"id":20785253,"url":"https://github.com/navdevl/questiongenerator","last_synced_at":"2025-08-08T07:13:11.886Z","repository":{"id":121582983,"uuid":"175460467","full_name":"Navdevl/questionGenerator","owner":"Navdevl","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-13T20:37:40.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T17:42:58.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/Navdevl.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":"2019-03-13T16:38:52.000Z","updated_at":"2019-03-13T20:42:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7a13f0e-bcc5-43e1-a0af-28710fa51edd","html_url":"https://github.com/Navdevl/questionGenerator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Navdevl/questionGenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navdevl%2FquestionGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navdevl%2FquestionGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navdevl%2FquestionGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navdevl%2FquestionGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Navdevl","download_url":"https://codeload.github.com/Navdevl/questionGenerator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navdevl%2FquestionGenerator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269380300,"owners_count":24407610,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-17T14:44:15.976Z","updated_at":"2025-08-08T07:13:11.828Z","avatar_url":"https://github.com/Navdevl.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Question Generator\n\nThis is a Rails application that can perform the following operation.\n\n1. Given the required parameters, this application can generate a set of questions that satisfies the passed condition.\n2. This is completely API only application.\n\n## Instruction\n\nThe application is hosted https://questions-generator.herokuapp.com and has two endpoints.\n\n1. The root endpoint https://questions-generator.herokuapp.com/questions that shows the loaded questions. Given the restriction to DB, the application loads a set of question from an YAML file located in https://github.com/Navdevl/questionGenerator/blob/master/lib/data/questions.yml \n\n2. POST call to https://questions-generator.herokuapp.com/questions/generate with a payload like the one given below can generate appropriate results.\n`{\"total\": 100, \"percentages\": { \"easy\": 50, \"medium\": 25, \"hard\": 25 }}`\n\n3. The total percentages should equal to 100% else there will be an error.\n\n4. If the requirement can't be satisfied, it will also thrown an error.\n\n\n## Logic\nYou can find the whole logic in the `lib/question_set.rb` file.\n\n## Production\nThis is already hosted in https://questions-generator.herokuapp.com and also there is a postman documentation that you can make use of. https://documenter.getpostman.com/view/2476650/S17kyqbM","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavdevl%2Fquestiongenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavdevl%2Fquestiongenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavdevl%2Fquestiongenerator/lists"}