{"id":17117045,"url":"https://github.com/c-lodder/japi","last_synced_at":"2025-10-06T19:10:49.927Z","repository":{"id":87373538,"uuid":"289264389","full_name":"C-Lodder/japi","owner":"C-Lodder","description":"A mini Joomla API wrapper","archived":false,"fork":false,"pushed_at":"2020-08-26T18:57:28.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T07:30:07.198Z","etag":null,"topics":["api","javascript","joomla"],"latest_commit_sha":null,"homepage":"https://japi.joomjunk.co.uk","language":"HTML","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/C-Lodder.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":"2020-08-21T12:28:23.000Z","updated_at":"2020-08-26T18:57:30.000Z","dependencies_parsed_at":"2023-03-27T13:05:36.502Z","dependency_job_id":null,"html_url":"https://github.com/C-Lodder/japi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C-Lodder%2Fjapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C-Lodder%2Fjapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C-Lodder%2Fjapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C-Lodder%2Fjapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/C-Lodder","download_url":"https://codeload.github.com/C-Lodder/japi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245191634,"owners_count":20575248,"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","javascript","joomla"],"created_at":"2024-10-14T17:50:27.909Z","updated_at":"2025-10-06T19:10:49.828Z","avatar_url":"https://github.com/C-Lodder.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JAPI\nA mini Joomla API wrapper.\n\n\n## Usage\n\n### Including it in your page:\n```javascript\n\u003cscript src=\"japi.js\" type=\"module\"\u003e\u003c/script\u003e\n```\n\n### Importing it in your Javascript file:\n```javascript\nimport JAPI from './japi.js'\n```\n\n### Instantiate the class:\n```javascript\nconst japi = new JAPI(\n  'https://yoursite.com',\n  'YOUR_JOOMLA_TOKEN'\n)\n```\n\n## Examples\n\n### GET (list)\n```javascript\njapi.get('content/article')\n  .then(response =\u003e console.log(response))\n```\n\n### GET (single)\n```javascript\njapi.get('content/article/1')\n  .then(response =\u003e console.log(response))\n```\n\n### CREATE\n```javascript\njapi.post('content/article', {\n  alias: 'my-article',\n  articletext: 'My text',\n  catid: 2,\n  language: '*',\n  metadesc: '',\n  metakey: '',\n  title: 'My New Article'\n}).then(response =\u003e console.log(response))\n```\n\n### DELETE\n```javascript\njapi.delete('content/article/1')\n  .then(response =\u003e console.log(response))\n```\n### UPDATE\u003c/h3\u003e\n```javascript\njapi.update('content/article/1', {\n  catid: 2,\n  title: 'My Updated Article',\n}).then(response =\u003e console.log(response))\n```\n\n## More info\nCheck out more [infomation on Joomla's core APIs](https://docs.joomla.org/J4.x:Joomla_Core_APIs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-lodder%2Fjapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-lodder%2Fjapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-lodder%2Fjapi/lists"}