{"id":16096198,"url":"https://github.com/craigfe/scala-question-generator","last_synced_at":"2025-04-05T20:28:43.807Z","repository":{"id":138536017,"uuid":"114767240","full_name":"craigfe/scala-question-generator","owner":"craigfe","description":"A Scala REST API for generating simple maths questions.","archived":false,"fork":false,"pushed_at":"2017-12-22T13:15:54.000Z","size":521,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T19:39:33.842Z","etag":null,"topics":["play-framework","rest-api","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craigfe.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":"2017-12-19T13:17:17.000Z","updated_at":"2018-01-03T17:49:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"80592193-d53e-4dc1-bef2-f4ae35ed24e2","html_url":"https://github.com/craigfe/scala-question-generator","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":"0.11111111111111116","last_synced_commit":"71cee967dba3b47e4cf7477221cf4ff7e7fd6e1c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigfe%2Fscala-question-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigfe%2Fscala-question-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigfe%2Fscala-question-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigfe%2Fscala-question-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craigfe","download_url":"https://codeload.github.com/craigfe/scala-question-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247397149,"owners_count":20932473,"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":["play-framework","rest-api","scala"],"created_at":"2024-10-09T17:11:52.102Z","updated_at":"2025-04-05T20:28:43.778Z","avatar_url":"https://github.com/craigfe.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Question Generator REST API\nThis project is a simple REST API written in Scala using the [Play framework](https://playframework.com/). \nThe API provides a single URI (```/question```), which generates a simple addition question and returns a JSON response such as the following:\n```\n{\n  \"question\" : \"94 + 980?\",\n  \"answers\" : [ 1044, 1074, 1071, 1054 ]\n}\n```\nThe URI accepts two optional query parameters, ``lower`` and ``upper``, which specify the lower and upper bounds of the answer \n(inclusive). The lower and upper bounds default to the minimum and maximum values: [0, 1,000,000]. Invalid query \nparameters will result in an Error 400 response.\n\nThe operation of the API is simple: The ``/question`` URI is managed by the [QuestionController](app/controllers/QuestionController.scala) \nclass, which invokes a singleton instance of the [QuestionGenerator](app/services/QuestionGenerator.scala) class in \norder to generate questions. These two files have been commented excessively in order to explain the design goals of the code as well as the functionality.\n\n## Usage\nThis project can be executed using [sbt](http://www.scala-sbt.org/) as follows:\n```\nsbt run\n```\nThis will initialise a development server at http://localhost:9000 to host the application. Further information is contained on the homepage.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigfe%2Fscala-question-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraigfe%2Fscala-question-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigfe%2Fscala-question-generator/lists"}