zacoppotamus / ElgarsCodingOrchestra

2nd Year Software Engineering Project
project.spe.sneeza.me
3 stars 0 forks source link

Delete data returns an error #104

Closed BenElgar closed 10 years ago

BenElgar commented 10 years ago

When I try to delete a record I always get the following error back:

{
    "meta": {
        "code": 404,
        "version": "\u03b2",
        "runtime": 0.001
    },
    "data": {
        "message": "You can't use a catch-all query for delete statements, dummy."
    }
}

This is irrespective of the request. And I'm pretty sure I'm doing it right. This needs to either be fixed or the documentation updated.

lukezbihlyj commented 10 years ago

Ran fine for me:

{
    "meta": {
        "code": 200,
        "version": "β",
        "runtime": 0.002
    },
    "data": {
        "deleted": 1
    }
}
lukezbihlyj commented 10 years ago

That was via Mashape by the way, on 'sneeza.phpusers' using query: {"field2":"test2"}

BenElgar commented 10 years ago

See the delete proxy for jtable. I'm having issues using any of the delete functions from the php wrapper.

lukezbihlyj commented 10 years ago

I fixed this, pls do it your own.