Placeholder issue for working on the API including:
Labels |
Added:
?
|
Labels |
Added:
?
|
In theory all fields available in the backend should be visible via the API too assuming we are gearing towards making with 100% API driven.
would like to listen @wilsonge before to propose a PR
Basically we want to expose everything in the API - there's potentially some fields we may choose to not because they are totally internal to the Joomla UI but I think they will be few and far between. There's going to be a small number of cases where I'm also delaying some sensitive fields to give the API time to bed in and get tested (mainly stuff in com_users that's security related) - hence I merged some of the com_users PRs for 4.1
- Public API flag doesn't work
There was a property that a route in a webservice that can return with the boolean public
that (by default false) can be set to true to expose a webservice to the public (unlikely to ever be used in core - but could be enabled on websites for custom webservices).
Relevent code: https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Application/ApiApplication.php#L297-L303
This is mainly designed for read endpoints - I don't have any real expectations that this would work for post/put etc endpoints. However if you specify this things still kinda fail to be publically accessible. The login code doesn't run but other things later on in the process fail because there's no valid user objects in JUser or something (can't remember the specifics now)
Labels |
Removed:
?
|
Labels |
Added:
?
No Code Attached Yet
Removed: ? |
Hi @wilsonge ,
can I add another 2 issues?
If I try to create an article with this data:
And I recieve this error:
if I use a shorter title, the article is still inserted as unpublished