{"id":26259058,"url":"https://github.com/imarjunshrma/next.js_crud_api","last_synced_at":"2025-07-29T02:42:22.343Z","repository":{"id":173644901,"uuid":"649511667","full_name":"imarjunshrma/next.js_crud_api","owner":"imarjunshrma","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-08T12:41:19.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T12:09:03.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/imarjunshrma.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,"zenodo":null}},"created_at":"2023-06-05T03:20:24.000Z","updated_at":"2023-06-05T03:23:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7818c10-c76f-4c51-9b76-827b4937f43b","html_url":"https://github.com/imarjunshrma/next.js_crud_api","commit_stats":null,"previous_names":["imarjunshrma/next.js_crud_api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imarjunshrma/next.js_crud_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imarjunshrma%2Fnext.js_crud_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imarjunshrma%2Fnext.js_crud_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imarjunshrma%2Fnext.js_crud_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imarjunshrma%2Fnext.js_crud_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imarjunshrma","download_url":"https://codeload.github.com/imarjunshrma/next.js_crud_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imarjunshrma%2Fnext.js_crud_api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267620973,"owners_count":24116882,"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-07-29T02:00:12.549Z","response_time":2574,"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":"2025-03-13T22:15:55.643Z","updated_at":"2025-07-29T02:42:22.338Z","avatar_url":"https://github.com/imarjunshrma.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Next.js Crud Api\n\nHow to make Apis in Next.js using route handlers\n\n\n\n## API Reference\n\n#### Get all users\n\n```https\n  GET /api/user\n```\n\n#### Get a user\n\n```https\n  GET /api/user/${id}\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `string` | **Required**. Id of user to fetch |\n\n\n#### Create New User\n\n```https\n  POST /api/user\n```\n\n#### Update New User\n\n```https\n  PUT /api/user/id\n```\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `string` | **Required**. Id of user to Update|\n\n#### Delete New User\n\n```https\n  Delete /api/user/id\n```\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `string` | **Required**. Id of user to Delete |\n\n\n## Usage/Examples\n\n```javascript\nexport async function DELETE(req:Request,context:any){\n    const id=context.params.id\n  await fetch(`${url}/${id}`,{\n      method:'DELETE',\n      headers:{\n          'Content-Type':\"application/json\"\n      }\n    })\n  \n      return NextResponse.json({message:'user has been deleted'})\n  }\n```\n\n\n## Run Locally\n\nClone the project\n\n```bash\n  git clone https://github.com/imarjunshrma/next.js_crud_api.git\n```\n\nGo to the project directory\n\n```bash\n  cd my-project\n```\n\nInstall dependencies\n\n```bash\n  npm install\n```\n\nStart the server\n\n```bash\n  npm run dev\n```\n\n\n## 🛠 Skills\nReact,Node,Angular,React Native,Prisma,db,C,C++...\n\n\n## 🚀 About Me\nI'm a full stack developer...\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimarjunshrma%2Fnext.js_crud_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimarjunshrma%2Fnext.js_crud_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimarjunshrma%2Fnext.js_crud_api/lists"}