{"id":19768066,"url":"https://github.com/jonathandey/oc-jd-dingoapi","last_synced_at":"2025-04-30T16:34:06.943Z","repository":{"id":93880888,"uuid":"76039940","full_name":"jonathandey/oc-jd-dingoapi","owner":"jonathandey","description":"Dingo/API implementation for OctoberCMS","archived":false,"fork":false,"pushed_at":"2020-05-03T17:36:51.000Z","size":10,"stargazers_count":16,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T03:06:26.254Z","etag":null,"topics":["api","authentication","dingo-api","jwt","octobercms","octobercms-plugin"],"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/jonathandey.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":"2016-12-09T13:58:38.000Z","updated_at":"2022-02-28T12:14:47.000Z","dependencies_parsed_at":"2023-04-07T01:34:27.768Z","dependency_job_id":null,"html_url":"https://github.com/jonathandey/oc-jd-dingoapi","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/jonathandey%2Foc-jd-dingoapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathandey%2Foc-jd-dingoapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathandey%2Foc-jd-dingoapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathandey%2Foc-jd-dingoapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathandey","download_url":"https://codeload.github.com/jonathandey/oc-jd-dingoapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251742808,"owners_count":21636515,"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","authentication","dingo-api","jwt","octobercms","octobercms-plugin"],"created_at":"2024-11-12T04:34:38.753Z","updated_at":"2025-04-30T16:34:06.881Z","avatar_url":"https://github.com/jonathandey.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Implementation of the [Dingo/Api](https://github.com/dingo/api) for OcotberCMS\n\n## Setup\n\nAdd the following env variables\n\n```\nAPI_PREFIX=api\nAPI_SUBTYPE=YOUR_SUBTYPE\nAPI_DEBUG=true\nJWT_TTL=31622400\nJWT_BLACKLIST_ENABLED=false\nAPI_DEFAULT_FORMAT=json\n```\n\n## Testing\n\nFirst get a token\n\n```\ncurl -X \"POST\" \"http://127.0.0.1:8000/api/auth/token\" \\\n     -H 'Accept: application/x.YOUR_SUBTYPE.v1+json' \\\n     -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8'\n```\n\nThen using the token\n\n```\ncurl \"http://127.0.0.1:8000/api/user/details\" \\\n     -H 'Accept: application/x.YOUR_SUBTYPE.v1+json' \\\n     -H 'Authorization: Bearer TOKEN_FROM_FIRST_REQUEST'\n\n```\n\n### Common problems\n\n#### Routes not working?\nEnsure you require your API routes.php file within your Plugin.php boot method. Example: `require realpath(__DIR__ . '/http/api/routes.php');`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathandey%2Foc-jd-dingoapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathandey%2Foc-jd-dingoapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathandey%2Foc-jd-dingoapi/lists"}