techjoomla / com_api

API framework for Joomla
http://docs.techjoomla.com/joomla-rest-api/com-api-introduction
GNU General Public License v3.0
123 stars 97 forks source link

websiteurl/?option=com_api&app=articles&resource=article&format=json #148

Open learneradarsh opened 1 year ago

learneradarsh commented 1 year ago

We are getting following error: { "err_msg": "Articles API Plugin not found, Articles is probably not installed", "err_code": 400, "response_id": "", "api": "", "version": "", "data": {} }

learneradarsh commented 1 year ago

@coolbung @parthlawate Please help here.

ankush-maherwal commented 1 year ago

Please specify the Joomla and com_ap version you are using.

Also, please make sure that you have installed and enabled the "Api - Articles" plugin on your site

If not, you can download the plugin from here and install it on your site.

NOTE:- The plugin is only compatible with Joomla V3.x. Also, please make sure you back up your site before updating or installing any extensions.

articles.zip

learneradarsh commented 1 year ago

Is there any other way I can do it for Joomla 4.Please let me know.

ankush-maherwal commented 1 year ago

Hello @learneradarsh here is the plugin which might work for Joomla 4 but it's not tested yet.

you can try to use this plugin articles.zip

learneradarsh commented 1 year ago

image

Hi @ankush-maherwal ,

Actually I have installed it but still when i hit below url getting error:

?option=com_api&app=articles&resource=articles&format=json error: { "err_msg": "Articles API Plugin not found, Articles is probably not installed", "err_code": 400, "response_id": "", "api": "", "version": "", "data": {} }
ankush-maherwal commented 1 year ago

@learneradarsh It seems that you are using resource query parameter as "articles" and it should be "article"

You are using this URL ?option=com_api&app=articles&resource=articles&format=json

Try to use this ?option=com_api&app=articles&resource=article&format=json

learneradarsh commented 1 year ago

Thansk @ankush-maherwal ,

It worked!

But in response of it I am getting empty object: image Is there any documentation I can follow for queries?