{"id":14983666,"url":"https://github.com/codevate/public-api-blog-post-example","last_synced_at":"2025-04-10T19:02:25.041Z","repository":{"id":91317070,"uuid":"62586153","full_name":"Codevate/public-api-blog-post-example","owner":"Codevate","description":"A companion project for our blog post describing how to secure public APIs client-side.","archived":false,"fork":false,"pushed_at":"2017-10-11T14:40:50.000Z","size":55,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T16:43:45.019Z","etag":null,"topics":["api-security","oauth2","oauth2-server","php","public-api","symfony-api","symfony-application","symfony2"],"latest_commit_sha":null,"homepage":"https://www.codevate.com/blog/12-securing-client-side-public-api-access-with-oauth-2-and-symfony","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/Codevate.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}},"created_at":"2016-07-04T20:23:02.000Z","updated_at":"2024-03-03T04:25:54.000Z","dependencies_parsed_at":"2023-03-13T17:48:02.720Z","dependency_job_id":null,"html_url":"https://github.com/Codevate/public-api-blog-post-example","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"65ed79b6517c71893fa1642ab3139d958d36be24"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Fpublic-api-blog-post-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Fpublic-api-blog-post-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Fpublic-api-blog-post-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Fpublic-api-blog-post-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codevate","download_url":"https://codeload.github.com/Codevate/public-api-blog-post-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248279196,"owners_count":21077406,"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-security","oauth2","oauth2-server","php","public-api","symfony-api","symfony-application","symfony2"],"created_at":"2024-09-24T14:07:45.188Z","updated_at":"2025-04-10T19:02:24.979Z","avatar_url":"https://github.com/Codevate.png","language":"PHP","readme":"# Public OAuth API\n\nA companion Symfony project for our blog post on securing client-side public API access with OAuth 2 and Symfony.\n\n## Getting started\n\nInstall dependencies:\n\n```\ncomposer install\n```\n\nCreate the database and setup the schema:\n\n```\nphp app/console doctrine:database:create --if-not-exists\nphp app/console doctrine:schema:update --force\n```\n\nCreate a new company in the database, then generate an OAuth client:\n\n```\nphp app/console app:oauth-client:create \u003ccompany-id\u003e\n```\n\nCreate a new restaurant in the database, then generate a hashid for it:\n\n```\nphp app/console app:restaurant:encode-id \u003crestaurant-id\u003e\n```\n\nStart the server:\n\n```\nphp app/console server:run\n```\n\nThen follow the \"Calling the API\" section in the blog post.\n\n## About Codevate\nCodevate is a specialist [UK mobile app development company](https://www.codevate.com/) that builds cloud-connected software. This repository was created for a blog post about a [custom web application development](https://www.codevate.com/services/web-development) project and was written by [Chris Lush](https://github.com/lushc).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodevate%2Fpublic-api-blog-post-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodevate%2Fpublic-api-blog-post-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodevate%2Fpublic-api-blog-post-example/lists"}