{"id":18956524,"url":"https://github.com/swader/rest","last_synced_at":"2025-04-18T15:02:10.360Z","repository":{"id":148115888,"uuid":"21428071","full_name":"Swader/REST","owner":"Swader","description":"SitePoint Example Code - Vito Tardia - Full REST API","archived":false,"fork":false,"pushed_at":"2014-07-02T14:48:49.000Z","size":121,"stargazers_count":28,"open_issues_count":1,"forks_count":66,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T06:22:45.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/Swader.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":"2014-07-02T14:48:41.000Z","updated_at":"2024-07-13T21:18:20.000Z","dependencies_parsed_at":"2023-03-27T14:22:10.443Z","dependency_job_id":null,"html_url":"https://github.com/Swader/REST","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/Swader%2FREST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swader%2FREST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swader%2FREST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swader%2FREST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swader","download_url":"https://codeload.github.com/Swader/REST/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249184644,"owners_count":21226425,"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":[],"created_at":"2024-11-08T13:52:44.016Z","updated_at":"2025-04-16T02:33:18.151Z","avatar_url":"https://github.com/Swader.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"My Contacts API\n===============\n\n_Author: Vito Tardia (\u003cvito@tardia.me\u003e)_\n\nThis application implements a simple contact list service that manages contacts with linked notes. It has **two object types**, contacts and notes. Each contact has basic attributes such as first name, last name, and email address. Also, each contact can have a number of markdown-formatted notes linked to it.\n\n**This is sample code** for the article \"Constructing a full REST API with respect to best practices - Part 1 and 2\" written for Sitepoint.\n\n## Resources and Actions\n\n    URL                           HTTP Method  Operation\n    /api/contacts                 GET          Returns an array of contacts\n    /api/contacts/:id             GET          Returns the contact with id of :id\n    /api/contacts                 POST         Adds a new contact and return it with an id attribute added\n    /api/contacts/:id             PUT          Updates the contact with id of :id\n    /api/contacts/:id             PATCH        Partially updates the contact with id of :id\n    /api/contacts/:id             DELETE       Deletes the contact with id of :id\n\n    /api/contacts/:id/star        PUT          Adds to favorites  the contact with id of :id\n    /api/contacts/:id/star        DELETE       Removes from favorites  the contact with id of :id\n\n    /api/contacts/:id/notes       GET          Returns the notes for the contact with id of :id\n    /api/contacts/:id/notes/:nid  GET          Returns the note with id of :nid for the contact with id of :id\n    /api/contacts/:id/notes       POST         Adds a new note for the contact with id of :id\n    /api/contacts/:id/notes/:nid  PUT          Updates the note with id if :nid for the contact with id of :id\n    /api/contacts/:id/notes/:nid  PATCH        Partially updates the note with id of :nid for the contact with id of :id\n    /api/contacts/:id/notes/:nid  DELETE       Deletes the note with id of :nid for the contact with id of :id\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswader%2Frest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswader%2Frest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswader%2Frest/lists"}