{"id":26326398,"url":"https://github.com/charmingdc/devqapi","last_synced_at":"2025-07-29T02:42:10.926Z","repository":{"id":262890586,"uuid":"888669978","full_name":"Charmingdc/DevQAPI","owner":"Charmingdc","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-14T21:24:56.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T21:29:24.918Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://devq-api.vercel.app","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/Charmingdc.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":"2024-11-14T19:54:14.000Z","updated_at":"2024-11-14T21:24:59.000Z","dependencies_parsed_at":"2024-11-14T21:30:44.960Z","dependency_job_id":"1f6365f4-98f4-4070-bdf5-3ad9b5bd73b2","html_url":"https://github.com/Charmingdc/DevQAPI","commit_stats":null,"previous_names":["charmingdc/devqapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Charmingdc%2FDevQAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Charmingdc%2FDevQAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Charmingdc%2FDevQAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Charmingdc%2FDevQAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Charmingdc","download_url":"https://codeload.github.com/Charmingdc/DevQAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243784057,"owners_count":20347409,"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-03-15T19:38:47.173Z","updated_at":"2025-03-15T19:38:47.675Z","avatar_url":"https://github.com/Charmingdc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# DevQAPI\n\nDevQAPI is a lightweight API designed to provide interview questions and answers categorized into three levels: Beginner, Intermediate, and Advanced. This API is perfect for developers preparing for interviews or creating quiz apps.\n\n## Features\n\n- **Categorized Questions**: Fetch questions based on skill level.\n- **Answers Included**: Each question comes with a corresponding answer.\n- **Simple and Easy to Use**: Designed for quick integration.\n\n## Installation\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/Charmingdc/DevQAPI.git\n   ```\n\n2. **Navigate to the project directory**:\n   ```bash\n   cd DevQAPI\n   ```\n\n3. **Install dependencies**:\n   ```bash\n   npm install\n   ```\n\n## Usage\n\n1. **Start the server**:\n   ```bash\n   npm start\n   ```\n   The server will run on `http://localhost:3000` by default.\n\n2. **API Endpoints**:\n\n   - **Get all questions**:\n     ```\n     GET /api/questions\n     ```\n     Returns all questions across all categories.\n\n   - **Get questions by category**:\n     ```\n     GET /api/questions/:category\n     ```\n     Replace `:category` with one of the following:\n     - `beginner`\n     - `intermediate`\n     - `advanced`\n\n     Example response for `GET /api/questions/beginner`:\n     ```json\n     [\n       {\n         \"question\": \"What is JavaScript?\",\n         \"answer\": \"JavaScript is a scripting language used to create and control dynamic web content.\"\n       },\n       {\n         \"question\": \"What are variables in JavaScript?\",\n         \"answer\": \"Variables are containers for storing data values.\"\n       }\n     ]\n     ```\n\n3. **Test the API**:\n   Use tools like [Postman](https://www.postman.com/) or your browser to interact with the endpoints.\n\n## Data Structure\n\nThe questions are stored in a JSON format with the following structure:\n```json\n{\n  \"beginner\": [\n    {\n      \"question\": \"What is JavaScript?\",\n      \"answer\": \"JavaScript is a scripting language used to create and control dynamic web content.\"\n    }\n  ],\n  \"intermediate\": [\n    {\n      \"question\": \"What is the difference between `var`, `let`, and `const`?\",\n      \"answer\": \"`var` has function scope, while `let` and `const` have block scope. `const` is used for constants.\"\n    }\n  ],\n  \"advanced\": [\n    {\n      \"question\": \"What is event delegation in JavaScript?\",\n      \"answer\": \"Event delegation is a technique of using a single event listener to handle events for multiple elements.\"\n    }\n  ]\n}\n```\n\n## Contributing\n\nContributions are welcome! If you have suggestions or want to add more questions, follow these steps:\n\n1. Fork the repository.\n2. Create a new branch:\n   ```bash\n   git checkout -b feature-new-questions\n   ```\n3. Make your changes and commit them:\n   ```bash\n   git commit -m \"Add new questions\"\n   ```\n4. Push to your branch:\n   ```bash\n   git push origin feature-new-questions\n   ```\n5. Open a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\nFor more details, visit the [GitHub repository](https://github.com/Charmingdc/DevQAPI).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmingdc%2Fdevqapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharmingdc%2Fdevqapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmingdc%2Fdevqapi/lists"}