{"id":18404348,"url":"https://github.com/appsynergy/fullofstars","last_synced_at":"2025-04-12T19:31:05.282Z","repository":{"id":68201357,"uuid":"131605720","full_name":"AppSynergy/FullOfStars","owner":"AppSynergy","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-30T14:27:18.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T04:21:26.868Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AppSynergy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-04-30T14:27:00.000Z","updated_at":"2018-05-03T15:47:04.000Z","dependencies_parsed_at":"2023-02-26T16:01:03.274Z","dependency_job_id":null,"html_url":"https://github.com/AppSynergy/FullOfStars","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/AppSynergy%2FFullOfStars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppSynergy%2FFullOfStars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppSynergy%2FFullOfStars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppSynergy%2FFullOfStars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AppSynergy","download_url":"https://codeload.github.com/AppSynergy/FullOfStars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248620933,"owners_count":21134714,"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-06T02:51:28.854Z","updated_at":"2025-04-12T19:31:05.252Z","avatar_url":"https://github.com/AppSynergy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"=== Full of Stars ===\nContributors: AppSynergy\nTested up to: 4.9.5\n\nFull of Stars is a WordPress plugin which provides you with a back-end to implement a star rating system.\n\nIt's made up of:\n\n* A database table to store your ratings.\n* The `get_ratings_summary()` function to help populate your templates.\n* Two [REST API](https://developer.wordpress.org/rest-api/) endpoints to read, create or update ratings.\n\n## API Endpoints\n\nBoth methods require a `post_id` parameter.\n\nUsers may only rate once per post.\n\n### POST example.com/wp-json/stars/rating HTTP/1.1\n\nThe POST method adds or updates a rating.\n\nWordPress cookie authentication is used to identify the user, so it also requires a [wp nonce](https://codex.wordpress.org/Function_Reference/wp_create_nonce). Set the action name to `wp_rest`.\n\n**Example:**\n\n````\n$.post({\n    url: \"http://example.com/wp-json/stars/rating\",\n    data: {\n        rating: 5,\n        post_id: 42,\n        _wpnonce: \"xxxxxx\"\n    }\n})\n````\n\n### GET example.com/wp-json/stars/rating HTTP/1.1\n\nThe GET method retrieves a summary of the ratings so far.\n\n**Example:**\n\n````\n$.get({\n    url: \"http://example.com/wp-json/stars/rating\",\n    data: {\n        post_id: 42\n    }\n})\n````\n\nA full jQuery example is available in the `/examples` directory.\n\n`get_ratings_summary()` provides the same response as the GET method.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsynergy%2Ffullofstars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappsynergy%2Ffullofstars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsynergy%2Ffullofstars/lists"}