{"id":21758926,"url":"https://github.com/anshul-sonpure/mobilestoreapi","last_synced_at":"2025-03-21T04:14:27.485Z","repository":{"id":156008209,"uuid":"632811577","full_name":"Anshul-Sonpure/mobilestoreapi","owner":"Anshul-Sonpure","description":"Rest API hosted using render. Crud operation can be performed after authentication on \"/products\" endpoint.","archived":false,"fork":false,"pushed_at":"2023-09-10T16:34:03.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T08:44:45.227Z","etag":null,"topics":["render","rest-api","restapi-framework"],"latest_commit_sha":null,"homepage":"https://mobilestore-c8yg.onrender.com","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/Anshul-Sonpure.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":"2023-04-26T07:20:33.000Z","updated_at":"2023-04-26T07:42:27.000Z","dependencies_parsed_at":"2024-11-26T11:42:59.043Z","dependency_job_id":null,"html_url":"https://github.com/Anshul-Sonpure/mobilestoreapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshul-Sonpure%2Fmobilestoreapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshul-Sonpure%2Fmobilestoreapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshul-Sonpure%2Fmobilestoreapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshul-Sonpure%2Fmobilestoreapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anshul-Sonpure","download_url":"https://codeload.github.com/Anshul-Sonpure/mobilestoreapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244734202,"owners_count":20501018,"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":["render","rest-api","restapi-framework"],"created_at":"2024-11-26T11:24:37.480Z","updated_at":"2025-03-21T04:14:27.461Z","avatar_url":"https://github.com/Anshul-Sonpure.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# _Mobile Store API_\n\nA Fake REST API using json-server with JWT authentication hosted on cloud service render.\n\nImplemented End-points: login,register and products\n\nIf you want to clone this repo follow below steps:\n## Install\n\n```\n$ npm install\n$ npm run start-auth\n```\n\nMight need to run\n```\nnpm audit fix\n```\n\n## How to login/register?\n\nYou can login/register by sending a POST request to\n\n```\nPOST https://mobilestore-c8yg.onrender.com/auth/login\nPOST https://mobilestore-c8yg.onrender.com/auth/register\nOR\nPOST https://mobilestoreapi.onrender.com/auth/login\nPOST https://mobilestoreapi.onrender.com/auth/login\n```\nwith the following data or any email, password from users.json\nValidation is added for existing email or blank request body in /auth/login or /auth/register endpoints.\n\n```\n{\n  \"email\": \"nilson@email.com\",\n  \"password\":\"nilson\"\n}\n```\n\nYou should receive an access token with the following format \n\n```\n{\n   \"access_token\": \"\u003cACCESS_TOKEN\u003e\"\n}\n```\n\nYou should send this authorization with any request to the protected endpoints i.e. \"/products\". You can do all CRUD operation on database.json. \nPlease note there is no verification / validation on request body send to database.json.\nFor eg. to access all products you will make a GET call to either of the endpoints(\"https://mobilestoreapi.onrender.com/products\") with Accesstoken.\n```\nAuthorization: Bearer \u003cACCESS_TOKEN\u003e\n```\n\nThank You\\\nHappy Coding,\\\nLearn,Code and Earn\\\nStay Safe and Stay Positive :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshul-sonpure%2Fmobilestoreapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanshul-sonpure%2Fmobilestoreapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshul-sonpure%2Fmobilestoreapi/lists"}