{"id":17675997,"url":"https://github.com/christianesperar/web-service-template","last_synced_at":"2025-05-12T21:25:23.879Z","repository":{"id":20006238,"uuid":"23273751","full_name":"christianesperar/web-service-template","owner":"christianesperar","description":"ProcessWire  web service implementation using  template","archived":false,"fork":false,"pushed_at":"2018-01-28T16:56:00.000Z","size":17,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T03:41:56.764Z","etag":null,"topics":["php","processwire"],"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/christianesperar.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-08-24T05:09:29.000Z","updated_at":"2022-10-25T04:03:14.000Z","dependencies_parsed_at":"2022-08-27T03:40:43.282Z","dependency_job_id":null,"html_url":"https://github.com/christianesperar/web-service-template","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/christianesperar%2Fweb-service-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianesperar%2Fweb-service-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianesperar%2Fweb-service-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianesperar%2Fweb-service-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christianesperar","download_url":"https://codeload.github.com/christianesperar/web-service-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253824180,"owners_count":21969976,"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":["php","processwire"],"created_at":"2024-10-24T07:24:06.201Z","updated_at":"2025-05-12T21:25:23.825Z","avatar_url":"https://github.com/christianesperar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebServiceTemplate\nProcessWire web service implementation using template\n\nUse template URL segment to identify what page should be returned. All output is generated in JSON format. \n\n\n# Supported fields\nThis are the current supported fields. Feel free to edit this part if the field you are using is supported. \n\n* Comments\n* Image\n* Map Marker\n* Page\n* Repeater\n* Text\n* Textarea\n\n# Supported Version\nThis template is tested on ProcessWire version 2.4 up to 3.\n\n# Supported Modules\nThis are the current supported fields. Feel free to edit this part if the modules you are using is supported. \n\n* CommentRatings\n\n# Installation\n\n### Template\n* Add a template **web-service** with no other fields and configure it to allow **URL Segments**\n* Add a field name **secret_key** and **site_prefix** (optional)\n* Add a template **configuration** and add the field **secret_key** and **site_prefix** (optional)\n\n### Page\nAll page must be child of the Home\n\n* Add a page with **configuration** as a template and enter your **secret key** to access the content and **site_prefix** (optional) you want to remove\n* Add a page with  **web-service** as a template\n\n# Calling\nYou can call specific page by **http://root/web_service_url/secret_key/page_url** (ex: **http://root/web-service/12345/example**)\n\n# Reserve URL\n* Home must be called by using **home** as **page_url** (ex: **http://root/web-service/12345/home**)\n\n# Live Implementation\nSome site use this template is:\n\n[N-340 Website](http://n-340.org/) - [JSON](http://n-340.org/api/app/json/)\n\n# Tips\nIncrease the maximum URL segment to avoid future error. You may modify this setting in your /site/config.php file and add $config-\u003emaxUrlSegments = 10 on the end of the line.\n\n# Todo\nAutomate the installation\n\n# Support\nGet support in the WebService template at  [ProcessWire forum](https://processwire.com/talk/topic/7369-webservicetemplate/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianesperar%2Fweb-service-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristianesperar%2Fweb-service-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianesperar%2Fweb-service-template/lists"}