{"id":21758901,"url":"https://github.com/anshul-sonpure/restapi_demo","last_synced_at":"2025-03-21T04:14:26.254Z","repository":{"id":156022488,"uuid":"422160443","full_name":"Anshul-Sonpure/RestAPI_Demo","owner":"Anshul-Sonpure","description":"API testing using Postman","archived":false,"fork":false,"pushed_at":"2022-10-13T05:22:49.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T00:34:13.976Z","etag":null,"topics":["api","crud-application","postman","postman-collection","rest","rest-api"],"latest_commit_sha":null,"homepage":"","language":"HTML","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":"2021-10-28T10:28:54.000Z","updated_at":"2022-10-13T05:17:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"34176075-e83b-46f0-a178-cef51f6126e8","html_url":"https://github.com/Anshul-Sonpure/RestAPI_Demo","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%2FRestAPI_Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshul-Sonpure%2FRestAPI_Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshul-Sonpure%2FRestAPI_Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshul-Sonpure%2FRestAPI_Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anshul-Sonpure","download_url":"https://codeload.github.com/Anshul-Sonpure/RestAPI_Demo/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":["api","crud-application","postman","postman-collection","rest","rest-api"],"created_at":"2024-11-26T11:24:33.311Z","updated_at":"2025-03-21T04:14:26.249Z","avatar_url":"https://github.com/Anshul-Sonpure.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## REST API Testing Collection with Assertions \n\nHello All,\nThis is a REST API collection which can be used for testing and for Basic Hands-on.\\\nDocumentation can be viewed here: https://documenter.getpostman.com/view/18134482/UVC6hRNg\n\nWe have two endpoints.\n1. /users\n2. /department\n\nUser folder has following:\n1. GET method fetches the complete data of users\n2. GET method fetches the data of single user.\n3. POST method to create a new user with id=11.\n4. PATCH method to modify the user email.\n5. PUT method to modify the complete user details.\n6. DELETE method to delete user at id=11.\n7. POST method to create a new user with id=11.\n\nDepartment folder has following:\n1. GET method to fetch all department details\n2. PATCH method to modify department name for dpt id=5.\n\n\nI have used json-server which is used to create demo REST JSON services within a short span of minutes.\n\nSteps to start the json-server:\n1. Install npm and json-server:\\\n` npm install -g json-server`\n\n2. Start json-server:\\\n` json-server --watch db.json`\n\nNOTE:\ndb.json file will be created in your working project directory and you can modify the content present in there.\n\n3.To create mock data I have used Mockaroo.\nhttps://www.mockaroo.com/\nMockaroo is a free test data generator and API mocking tool.\n\n4. Open your browser and navigate to http://localhost:3000/, once your json-server is up and running you will be able to see JSON Server home page \nand under Resources our endpoint will displayed.\n\n5. Access the endpoint : http://localhost:3000/users\n\n6. Implementation of newman htmlextra report:\n    To install newman htmlextra: npm install -g newman-reporter-htmlextra\n    Export the Post Collection in json format.\n    Open command prompt and navigate to the Postman Collection.\n    Execute the command: newman run Rest_Postman.postman_collection.json -r htmlextra \n\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%2Frestapi_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanshul-sonpure%2Frestapi_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshul-sonpure%2Frestapi_demo/lists"}