{"id":17823910,"url":"https://github.com/developedbyme/wprr-api","last_synced_at":"2025-03-18T16:30:45.856Z","repository":{"id":40678776,"uuid":"135720519","full_name":"developedbyme/wprr-api","owner":"developedbyme","description":"API for running a full react site on WordPress without any server setup","archived":false,"fork":false,"pushed_at":"2024-10-08T09:30:26.000Z","size":838,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-13T02:03:26.070Z","etag":null,"topics":["api","react","reactjs","wordpress","wordpress-api","wordpress-plugin","wp","wp-api"],"latest_commit_sha":null,"homepage":"http://wpreactrouter.com","language":"JavaScript","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/developedbyme.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-06-01T13:24:05.000Z","updated_at":"2024-10-08T09:30:30.000Z","dependencies_parsed_at":"2024-04-02T08:45:50.628Z","dependency_job_id":"a8c01037-6b52-492f-9f34-9d878e200494","html_url":"https://github.com/developedbyme/wprr-api","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/developedbyme%2Fwprr-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developedbyme%2Fwprr-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developedbyme%2Fwprr-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developedbyme%2Fwprr-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developedbyme","download_url":"https://codeload.github.com/developedbyme/wprr-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940088,"owners_count":20372045,"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","react","reactjs","wordpress","wordpress-api","wordpress-plugin","wp","wp-api"],"created_at":"2024-10-27T17:59:54.426Z","updated_at":"2025-03-18T16:30:45.502Z","avatar_url":"https://github.com/developedbyme.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPRR API\n\nThis plugin enables data to be outputted at json for any url in wordpress.\n\n## Usage\n\nAdd the query ?mRouterData=json to any url to get output as json.\n\n## Installation\n### From your WordPress dashboard\n\n1. Visit 'Plugins \u003e Add New'\n2. Search for 'WPRR API'\n3. Activate WPRR API from your Plugins page.\n\n### From WordPress.org\n1. Upload the folder `wprr-api` to the `/wp-content/plugins/` directory.\n2. Activate the plugin through the 'Plugins' menu in WordPress.\n\n## Data structures for data API\n\n### CurrentUserData\n\n```\n{\n\tid: int,\n\tlogin: string,\n\temail: string,\n\tname: string,\n}\n```\n\n## Data API Endpoints\n\n### Get the current user\n\nGets the details for the current user\n\n#### Request\n\nGET `/wp-content/plugins/wprr-api/data/me/`\n\n#### Response\n\n```\n{\n\tcode: \"success\",\n\tdata: {\n\t\tuser: CurrentUserData,\n\t\trestNonce: string\n\t}\n}\n```\n\n#### Errors\n\nResponse for not signed in\n\n```\n{\n\tcode: \"success\",\n\tdata: null\n}\n```\n\n## Changelog\n\n### 0.17.0\n* Started to move over to the wprr namespace\n\n### 0.16.0\n* New endpoint for range\n\n### 0.15.0\n* Acf encoding of meta\n\n### 0.14.0\n* First version of rendering\n\n### 0.13.4\n* Added hook for encoding of term\n\n### 0.13.3\n* Correct translation of acf options\n\n### 0.13.2\n* Image redirection\n\n### 0.13.1\n* Added support for id redirect\n\n### 0.13.0\n* Added support for add-ons\n\n### 0.12.0\n* Changed loading of acf values to support options\n\n### 0.11.8\n* Added menu end point\n\n### 0.11.7\n* Added prepare of encoding\n\n### 0.11.6\n* Added endpoint to get acf options\n\n### 0.11.5\n* Check for permissions on api endpoints\n\n### 0.11.4\n* Added attachment upload\n* Added check for permissions\n\n### 0.11.3\n* External encoding of terms\n\n### 0.11.2\n* New edit post function\n\n### 0.11.1\n* Apply filters for wysiwyg in acf repeater\n\n### 0.11.0\n* Added custom ranges\n* Changed domain\n* Added encode_post_link as an external function\n\n### 0.10.8\n* Correct encoding of page links\n\n### 0.10.7\n* Adding image data to attachment\n\n### 0.10.6\n* Encoding flexible content\n\n### 0.10.5\n* Added performance data\n\n### 0.10.4\n* Ordering for ranges\n\n### 0.10.3\n* More performance on getting images\n\n### 0.10.2\n* Correct order for children\n\n### 0.10.1\n* Correct value for pagination\n\n### 0.10.0\n* Added object for data beloning to the query\n\n### 0.9.11\n* Added language description\n* Added meta to terms\n\n### 0.9.10\n* Added encoding for oembed\n\n### 0.9.9\n* Fixed images\n* Check if file exists\n\n### 0.9.8\n* Encoding media files in acf\n\n### 0.9.7\n* Added slug to encoded terms\n\n### 0.9.6\n* Added possibility to select multiple terms for ranges\n\n### 0.9.5\n* Added encoding of acf taxonomies\n\n### 0.9.4\n* Added image range endpoint\n\n### 0.9.3\n* Added post range endpoint\n\n### 0.9.2\n* External availability to encode request\n\n### 0.9.1\n* Encoding acf galleries\n\n### 0.9.0\n* Added output buffer for php messages\n\n### 0.8.5\n* Removed notice when image sizes are missing\n* Added endpoint for customizer data\n\n### 0.8.4\n* Added more data to images\n\n### 0.8.3\n* Encoding acf repeater fields\n* Moved encoding of images\n\n### 0.8.2\n* Added encoding of acf fields\n\n### 0.8.1\n* Added children to posts\n* Fixed misspelled domains\n\n### 0.8.0\n* Added encoding of post links\n* Added parent to posts\n\n### 0.7.6\n* Added end point to get data by id\n\n### 0.7.5\n* Added acf encoding\n* Refactored encoding to external class\n\n### 0.7.4\n* Fixed problem with posts page\n\n### 0.7.3\n* Added gravatar hash\n\n### 0.7.2\n* Added wordpress version to meta data\n* Fixed content and excerpt for queriedData\n\n### 0.7.1\n* Not loading main.css that isn't in use\n\n### 0.7.0\n* Added post thumbnails to output\n* Changed all link attributes to permalink\n\n### 0.6.2\n* Fixed problems with getting authors\n\n### 0.6.1\n* Added additional checks for front page\n\n### 0.6.0\n* Added queried data to response\n* Added encoding of users\n* Added encoding of terms\n* Added base classes for react areas\n\n### 0.5.1\n* Moved encoding of post to separate function\n\n### 0.5.0\n* Added webpack for notices and react areas in admin\n\n### 0.4.0\n* Changed structure to use odd core\n\n### 0.3.0\n* Changed format to have a main data field and a main metadata field\n\n### 0.2.4\n* Added publish date\n\n### 0.2.3\n* Changed id to lower case\n* Added type and status to post\n* Added post type to template selection\n\n### 0.2.2\n* Added permalink to posts\n* Added terms to post\n\n### 0.2.1\n* Moved template selection parameters to own object\n* Made query and queried object private to be used for debug only\n\n### 0.2.0\n* Added posts\n\n### 0.1.1\n* Added readme.\n* Added query to response.\n\n### 0.1\n* First release.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopedbyme%2Fwprr-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopedbyme%2Fwprr-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopedbyme%2Fwprr-api/lists"}