{"id":28408547,"url":"https://github.com/esmond-m/em-rest-api-cpt","last_synced_at":"2026-05-18T00:02:13.689Z","repository":{"id":293899672,"uuid":"985033062","full_name":"Esmond-M/em-rest-api-cpt","owner":"Esmond-M","description":"Use REST API to populate custom post type.","archived":false,"fork":false,"pushed_at":"2026-05-07T07:43:33.000Z","size":201,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-07T09:13:24.565Z","etag":null,"topics":["plugin","rest-api","restapi","wordpress"],"latest_commit_sha":null,"homepage":"","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/Esmond-M.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-17T00:08:02.000Z","updated_at":"2026-05-07T07:43:37.000Z","dependencies_parsed_at":"2025-05-17T20:40:45.534Z","dependency_job_id":null,"html_url":"https://github.com/Esmond-M/em-rest-api-cpt","commit_stats":null,"previous_names":["esmond-m/em-rest-api-cpt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Esmond-M/em-rest-api-cpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Esmond-M%2Fem-rest-api-cpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Esmond-M%2Fem-rest-api-cpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Esmond-M%2Fem-rest-api-cpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Esmond-M%2Fem-rest-api-cpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Esmond-M","download_url":"https://codeload.github.com/Esmond-M/em-rest-api-cpt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Esmond-M%2Fem-rest-api-cpt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["plugin","rest-api","restapi","wordpress"],"created_at":"2025-06-02T03:37:49.275Z","updated_at":"2026-05-18T00:02:08.678Z","avatar_url":"https://github.com/Esmond-M.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EM REST API CPT Plugin\n\nA WordPress plugin to create and populate a custom post type using the REST API.  \nEasily send data to your site and manage it as \"API Data\" posts.\n\n**Project:** [GitHub Repository](https://github.com/Esmond-M/em-rest-api-cpt)  \n**Author:** [esmondmccain.com](https://esmondmccain.com/)\n\n---\n\n## Features\n\n- Registers a custom post type: **API Data**\n- Accepts data via REST API endpoint\n- Secures data submission using WordPress user authentication\n- Simple JSON format for posting data\n- Easily extendable for custom fields or workflows\n\n---\n\n## Installation\n\n1. [Download the latest release](https://github.com/Esmond-M/em-rest-api-cpt/blob/main/build/em-rest-api-cpt.zip)\n2. Upload the `em-rest-api-cpt.zip` file to your `/wp-content/plugins/` directory.\n3. Extract the zip file. The plugin folder should be named `em-rest-api-cpt`.\n4. Activate the plugin via **Plugins \u003e Installed Plugins** in your WordPress admin.\n5. You will now see a new post type called **API Data** in your dashboard.\n\n---\n\n## Usage\n\n- **REST API Endpoint:**  \n  ```\n  https://yoursite.domain/wp-json/esmond-api/v1/receive\n  ```\n\n- **JSON Format for POST requests:**  \n  ```json\n  {\n    \"name\": \"\",\n    \"password\": \"\",\n    \"title\": \"\",\n    \"body\": \"\"\n  }\n  ```\n  - Use a valid WordPress username and password for authentication.\n  - `title` and `body` will be used for the new API Data post.\n\n- **Example cURL request:**\n  ```sh\n  curl -X POST https://yoursite.domain/wp-json/esmond-api/v1/receive \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"name\":\"yourusername\",\"password\":\"yourpassword\",\"title\":\"Post Title\",\"body\":\"Post Content\"}'\n  ```\n\n---\n\n## Extending\n\n- Add custom fields or meta boxes to the `API Data` post type as needed.\n- Modify the endpoint handler for additional validation or workflows.\n\n---\n\n## Support\n\nFor issues, suggestions, or contributions, please use the [GitHub Issues](https://github.com/Esmond-M/em-rest-api-cpt/issues) page.\n\n---\n\n*Maintained by [Esmond McCain](https://esmondmccain.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesmond-m%2Fem-rest-api-cpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesmond-m%2Fem-rest-api-cpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesmond-m%2Fem-rest-api-cpt/lists"}