A mini Joomla API wrapper.
<script src="japi.js" type="module"></script>import JAPI from './japi.js'const japi = new JAPI(
'https://yoursite.com',
'YOUR_JOOMLA_TOKEN'
)japi.get('content/article')
.then(response => console.log(response))japi.get('content/article/1')
.then(response => console.log(response))japi.post('content/article', {
alias: 'my-article',
articletext: 'My text',
catid: 2,
language: '*',
metadesc: '',
metakey: '',
title: 'My New Article'
}).then(response => console.log(response))japi.delete('content/article/1')
.then(response => console.log(response))japi.update('content/article/1', {
catid: 2,
title: 'My Updated Article',
}).then(response => console.log(response))Check out more infomation on Joomla's core APIs.