{"id":22561972,"url":"https://github.com/cristianprochnow/aping","last_synced_at":"2025-03-28T12:42:03.065Z","repository":{"id":107542491,"uuid":"566494910","full_name":"cristianprochnow/aping","owner":"cristianprochnow","description":"🏓 API to play PING-PONG.","archived":false,"fork":false,"pushed_at":"2022-11-15T20:10:24.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T13:15:40.475Z","etag":null,"topics":["php","rest-api"],"latest_commit_sha":null,"homepage":"","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/cristianprochnow.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":"2022-11-15T19:46:25.000Z","updated_at":"2023-03-09T01:36:29.000Z","dependencies_parsed_at":"2023-06-08T11:30:28.058Z","dependency_job_id":null,"html_url":"https://github.com/cristianprochnow/aping","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/cristianprochnow%2Faping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianprochnow%2Faping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianprochnow%2Faping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianprochnow%2Faping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristianprochnow","download_url":"https://codeload.github.com/cristianprochnow/aping/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246034229,"owners_count":20712851,"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","rest-api"],"created_at":"2024-12-07T22:11:03.505Z","updated_at":"2025-03-28T12:42:03.043Z","avatar_url":"https://github.com/cristianprochnow.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aping\n**🏓 API to play PING-PONG.**\n\n## About\n\nA rest API made with PHP to play game with words using resource from URI. If you send `ping`, it returns `pong`, and vice versa.\n\n\u003e Response from API are all in JSON format. And, when wrong path is sent, so there is no response and HTTP Header returns with `404` code.\n\n![response-example-not-found]\n\n## Routes\nRoot path for all routes must have `index.php`. So, if you are using `localhost` and use `git clone` into root folder from `localhost`, so `root path` will be\n```\n→ http://localhost/aping/index.php\n```\n![response-example]\n\n### GET\n\n**Path**\n\u003e `/game/ping`\n\n**Response**\n```json\n{\n  \"message\": \"PONG\"\n}\n```\n\n**Path**\n\u003e `/game/pong`\n\n**Response**\n```json\n{\n  \"message\": \"PING\"\n}\n```\n\n## Getting Started\n### Prerequisites\nTo run this project, you will need an Apache server with PHP recognition, to make requests.\n\nSo, to this, you can use `Docker` or tools like `XAMPP`, `WAMP` and others like these that offers ready environments for PHP and Apache integration.\n\n### Run\nTo run this, just make a `git clone` from it project and then use tools like `Insomnia` or `Postman` to make requests to path described in **Routes** section.\n\n## Built With\n- [x] PHP\n\n[response-example]: ./.github/example-response.jpg\n[response-example-not-found]: ./.github/example-response-not-found.jpg","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianprochnow%2Faping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristianprochnow%2Faping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianprochnow%2Faping/lists"}