joomla-projects / webservices

Webservices working group repository
GNU General Public License v2.0
16 stars 9 forks source link

Contact Delete webservice fails #16

Open javigomez opened 9 years ago

javigomez commented 9 years ago

All the others work but not DELETE in Contact webservice:

if you send DELETE to index.php?option=contact&api=Hal&webserviceClient=administrator&webserviceVersion=1.0.0&id=`X``

you get:


    "_messages": [
        {
            "message": "Webservice function for data validation does not exist.",
            "type": "error"
screen shot 2015-07-21 at 19 30 13
javigomez commented 9 years ago

cc: @Kixo

wilsonge commented 9 years ago

RedCore's list model has a getForm method (https://github.com/redCOMPONENT-COM/redCORE/blob/develop/libraries/redcore/model/list.php#L146-L174) which JModelList doesn't. The form object is required for data validation by the Contact XML form therefore we get this error.

As it looks like the redCore code was loading the filter form object I'm guessing that this means then that redCore actually has no validation of the data even if it works there

chrisdavenport commented 8 years ago

The old style URLs like 'index.php?option=contact&api=Hal&webserviceClient=administrator&webserviceVersion=1.0.0&id=X' will no longer work, but DELETE on /contacts/1234 should now work.