{"id":22547666,"url":"https://github.com/rohittcodes/reqres-api","last_synced_at":"2025-10-15T03:20:56.761Z","repository":{"id":254825392,"uuid":"847557161","full_name":"rohittcodes/reqres-api","owner":"rohittcodes","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-26T10:27:40.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T23:00:42.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/rohittcodes.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":"2024-08-26T05:11:50.000Z","updated_at":"2024-08-26T10:27:42.000Z","dependencies_parsed_at":"2024-08-31T14:01:36.080Z","dependency_job_id":null,"html_url":"https://github.com/rohittcodes/reqres-api","commit_stats":null,"previous_names":["rohittcodes/reqres-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rohittcodes/reqres-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohittcodes%2Freqres-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohittcodes%2Freqres-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohittcodes%2Freqres-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohittcodes%2Freqres-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohittcodes","download_url":"https://codeload.github.com/rohittcodes/reqres-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohittcodes%2Freqres-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279042500,"owners_count":26091262,"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-10-15T02:00:07.814Z","response_time":56,"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-12-07T15:12:34.487Z","updated_at":"2025-10-15T03:20:56.720Z","avatar_url":"https://github.com/rohittcodes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Reqres.in API](https://img.shields.io/badge/Reqres.in-API-blue)](https://reqres.in/api)\n[![NestJS](https://img.shields.io/badge/NestJS-v10.0.0^-red)](https://nestjs.com/)\n\n# Uses [Reqres.in](https://reqres.in/api) API Endpoints\n\nA RESTful API built using [NestJS](https://nestjs.com/).\n\n\n## Running the API\n\n### Prerequisites\n\n- Node.js\n- npm or yarn (yarn is recommended)\n- Docker (optional)\n- RabbitMQ (docker image is available or you can install it locally)\n\n### Installation\n\n```bash\n# Install dependencies\n$ npm install # or yarn\n```\n\n### Configuration\n\nCreate a `.env` file in the root of the project and add the following environment variables from the `.env.example` file.\n\n```bash\n# .env\nREQRES_API_URL=https://reqres.in/api\nMONGODB_URI=mongodb+srv://your-username:your-password@your-cluster-url/?retryWrites=true\u0026w=majority\u0026appName=your-app-name\nUSER_SERVICE_URL=amqp://localhost:5672\n```\n\n### Running the API \n\n\u003e Note: Make sure you have RabbitMQ running locally or you can use the docker image.\n\n```bash\n# Run the API in watch mode\n$ npm run start:dev # or yarn start:dev\n```\n\n## Test\n\n### Unit Tests\n```bash\n# unit tests\n$ npm run test # or yarn test\n```\n\n## API Endpoints\n\n### Users\n\n- GET `/user/:id` - Get a user by ID\n- POST `/users` - Create a new user and send a welcome email using RabbitMQ\n- GET `/users/:id/avatar` - Get a user's avatar and store it in the database and the file system (if it doesn't exist)\n- DELETE `/users/:id/avatar` - Delete a user's avatar from the database and the file system","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohittcodes%2Freqres-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohittcodes%2Freqres-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohittcodes%2Freqres-api/lists"}