{"id":19091552,"url":"https://github.com/abvenu/mockapi","last_synced_at":"2025-11-11T18:34:14.995Z","repository":{"id":64842675,"uuid":"578688213","full_name":"ABVenu/mockapi","owner":"ABVenu","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-15T20:48:47.000Z","size":32399,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T07:28:25.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ABVenu.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}},"created_at":"2022-12-15T16:40:08.000Z","updated_at":"2022-12-15T16:40:18.000Z","dependencies_parsed_at":"2022-12-16T05:22:06.577Z","dependency_job_id":null,"html_url":"https://github.com/ABVenu/mockapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"vivmagarwal/api-construction-kit","purl":"pkg:github/ABVenu/mockapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABVenu%2Fmockapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABVenu%2Fmockapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABVenu%2Fmockapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABVenu%2Fmockapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ABVenu","download_url":"https://codeload.github.com/ABVenu/mockapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABVenu%2Fmockapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283910126,"owners_count":26915128,"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-11-11T02:00:06.610Z","response_time":65,"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-09T03:13:46.377Z","updated_at":"2025-11-11T18:34:14.978Z","avatar_url":"https://github.com/ABVenu.png","language":"JavaScript","readme":"# Mock API Server with JWT Authentication\n\n## Installation\n```\nnpm i\n```\n\n## Run the server in development (local) environment\n```\nnpm run dev\n```\n\n## Access the server\n```\nhttp://localhost:9999/\n```\n\n## How to video\nhttps://www.loom.com/share/f4d8c58a0e224aebbbd0d20fbe946928\n\n## Node version\nv16.x\n\n## Deploy to [Cyclic.sh](https://app.cyclic.sh/#/join/vivmagarwal) in 2 minutes.\nhttps://www.loom.com/share/6af88bcc45b74c19845a83457e792964\n\n## Local server in 2 minutes\nhttps://www.loom.com/share/a1b18ff5449e41109d8f6b3bb2e46867\n\n## Resources\n`/cats` 336x\n\n`/users` 50x\n\n`/posts` 500x\n\n`/comments` 5000x\n\n`/photos` 1000x\n\n`/todos` 500x\n\n`/recipeCategories` 14x\n\n`/recipeIngredients` 570x\n\n`/recipes` 284x\n\n`/areas` 25x\n\n`/recipeTags` 73x\n\n\u003chr\u003e\n\nTo access and modify `cats`, you can use any HTTP method:\n`GET` `POST` `PUT` `PATCH` `DELETE` OPTIONS\n\nFor all other routes `GET` is open but all other HTTP methods requires Authentication.\n\nFor the `/orders` route, all methods are protected.\n\n\u003chr\u003e\n\n## Authentication\n### Register a new user \n```\nPOST http://localhost:9999/user/register\nContent-Type: application/json\n\n    {\n    \"username\": \"john.smith\",\n    \"firstname\": \"John\",\n    \"lastname\": \"Smith\",\n    \"email\": \"John@mail.com\",\n    \"password\": \"john.smith\",\n    \"avatar\": \"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/304.jpg\"\n    }\n```    \n\n### Login an existing user with password\n```\nPOST http://localhost:9999/user/login\nContent-Type: application/json\n\n    {\n      \"username\": \"john.smith\",\n      \"password\": \"john.smith\"\n    }\n```\n\n###\n\n## More examples\nhttps://github.com/vivmagarwal/mock-api-server-with-JWT-authentication/blob/main/server.rest\n\n## VSCode extension to make API calls from the .rest file\nhttps://marketplace.visualstudio.com/items?itemName=humao.rest-client \n\n## Change port\nUpdate `PORT=3000` in the `.env` file before `npm start`.\n\n## Add Custom Routes \u0026 Protected Routes\nhttps://www.loom.com/share/f4d8c58a0e224aebbbd0d20fbe946928","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabvenu%2Fmockapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabvenu%2Fmockapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabvenu%2Fmockapi/lists"}