No Code Attached Yet Information Required
avatar McTuska
McTuska
21 Mar 2025

Is your feature request related to a problem? Please describe.

Schemaorg cannot be update via API REST because plugin checks that you are on admin site or not.

Describe the solution you'd like

Update Schemaorg plugin check as
++ if ((!$app->isClient('administrator') & !$app->isClient('api') ) || !$this->isSupported($context))
instead of checking only admin site.

Additional context

Would help a lot automation process..

avatar McTuska McTuska - open - 21 Mar 2025
avatar joomla-cms-bot joomla-cms-bot - change - 21 Mar 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Mar 2025
avatar AdarshSantoria
AdarshSantoria - comment - 22 Mar 2025

Hi @McTuska,

I tested the Joomla REST API at /api/index.php/v1/content/articles/id using a PATCH request with a valid Bearer token and content-type application/json. The article was successfully updated via API, and the changes were reflected on the frontend.

So far, I haven’t encountered any issue updating via REST.

Your proposed solution:

if ((!$app->isClient('administrator') & !$app->isClient('api') ) || !$this->isSupported($context))

actually prevents both administrator and api clients from proceeding, which means only frontend (site) requests would be allowed. This defeats the purpose of enabling updates through the REST API.

Could you clarify what issue you're facing exactly? As of now, the current logic seems to be working as expected for API requests.

avatar QuyTon QuyTon - change - 24 Mar 2025
Labels Added: Information Required
avatar QuyTon QuyTon - labeled - 24 Mar 2025

Add a Comment

Login with GitHub to post a comment