{"id":28286356,"url":"https://github.com/mr9d/put-patch-demo","last_synced_at":"2026-05-09T19:44:03.442Z","repository":{"id":202726710,"uuid":"290004277","full_name":"mr9d/put-patch-demo","owner":"mr9d","description":"Demo application for Yandex Praktikum students to demonstrate the difference between PUT and PATCH methods in RESTful API.","archived":false,"fork":false,"pushed_at":"2022-11-14T18:29:52.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-21T20:12:14.469Z","etag":null,"topics":["express","insomnia","patch","postman","practicum","praktikum","put","rest","yandex"],"latest_commit_sha":null,"homepage":"","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/mr9d.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}},"created_at":"2020-08-24T18:13:43.000Z","updated_at":"2023-06-06T07:48:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1bcf149-ea38-494a-9766-64d5640c8e90","html_url":"https://github.com/mr9d/put-patch-demo","commit_stats":null,"previous_names":["mr9d/put-patch-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mr9d/put-patch-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr9d%2Fput-patch-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr9d%2Fput-patch-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr9d%2Fput-patch-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr9d%2Fput-patch-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mr9d","download_url":"https://codeload.github.com/mr9d/put-patch-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr9d%2Fput-patch-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260461954,"owners_count":23013005,"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":["express","insomnia","patch","postman","practicum","praktikum","put","rest","yandex"],"created_at":"2025-05-21T20:12:10.627Z","updated_at":"2026-05-09T19:44:03.437Z","avatar_url":"https://github.com/mr9d.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PUT/PATCH demo for Yandex Praktikum\n\n## About\n\nDemo application developed at the request of [Yandex Praktikum](https://practicum.com/) students. The goal was to demonstrate the difference between PUT and PATCH methods in RESTful API.\n\n## Running application\n\nIf you want to run the application, you can do the following:\n\n- `git clone` the repository\n- Run `npm install`\n- Start application with `npm run start`\n\nAfter this, REST API should be available for calls from [Insomnia](https://insomnia.rest/) or [Postman](https://www.postman.com/) at \u003chttp://localhost:8080\u003e\n\n## How to use\n\n### GET /contacts\n\nReturns a list of all contact.\n\n### GET /contacts/:phone\n\nReturns one contact for provided phone number.\n\n### POST /contacts\n\nCreates a new contact. Expects the following JSON body:\n\n```\n{\n  \"firstName\" = \"...\",\n  \"lastName\": \"...\",\n  \"phone\": \"...\"\n}\n```\n\n### PUT /contacts/:phone\n\nReplaces contact with provided phone number.\n\nThe request body is the same as above.\n\n### PATCH /contacts/:phone\n\nModifies contact with provided phone number.\n\nThe request body is the same as above, but all fields are optional.\n\n## Used technologies\n\n- Express 4.17 ([documentation](https://expressjs.com/en/4x/api.html))\n- [Insomnia](https://insomnia.rest/)\n- [Postman](https://www.postman.com/)\n- Read more about [RESTful APIs](https://restfulapi.net/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr9d%2Fput-patch-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr9d%2Fput-patch-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr9d%2Fput-patch-demo/lists"}