No Code Attached Yet ?
avatar MayaSima
MayaSima
24 Sep 2021

Steps to reproduce the issue

GET list of articles is using "articles" in plural: /api/index.php/v1/content/articles
the rest of the endpoints for single article (GET, POST, DELETE, PATCH) are using "article" in singular, but the endpoints do not work, returning 404 errors:
{ "errors": [ { "title": "Resource not found", "code": 404 } ] }

Changing article to articles in each corresponding endpoint fixes the issue:

/api/index.php/v1/content/article/{article_id} -> /api/index.php/v1/content/articles/{article_id}
/api/index.php/v1/content/article -> /api/index.php/v1/content/articles

DELETE article still doesn't work
DELETE {{base_path}}/api/index.php/v1/content/articles/4

Expected result

Article gets deleted

Actual result

{ "errors": [ { "title": "Forbidden" } ] }

System information (as much as possible)

See attachment

Additional comments

systeminfo-2021-09-24T05_10_52-04_00.zip
image

avatar MayaSima MayaSima - open - 24 Sep 2021
avatar joomla-cms-bot joomla-cms-bot - change - 24 Sep 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Sep 2021
avatar zero-24
zero-24 - comment - 24 Sep 2021

I can confirm that issue but didnt had time to look into the details but it looks like they got changed intentionally: #34093

So the docs and the postman file needs to be updated with the new routes.

avatar alikon
alikon - comment - 24 Sep 2021

you can delete an article only if it is in trashed status (-2)

for reference see:

and yes the docs is outdated

avatar alikon alikon - change - 24 Sep 2021
Labels Added: ?
avatar alikon alikon - labeled - 24 Sep 2021
avatar alikon alikon - change - 26 Sep 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-09-26 08:05:39
Closed_By alikon
avatar alikon alikon - close - 26 Sep 2021

Add a Comment

Login with GitHub to post a comment