/
DELETE Table

DELETE Table

REQUEST

HTTP ELEMENT

Value

HTTP ELEMENT

Value

URI

/rest/crud/1.0/$tableKey or /rest/crud/1.0/$tableId

METHOD

DELETE

RESPONSE

HTTP ELEMENT

Value

HTTP ELEMENT

Value

BODY

STATUS CODEBODY

204 - The Resource/Row is successfully deleted

404 - The Resource/Row is non-existing.

SCENARIO

RESPONSE

SCENARIO

RESPONSE

POSITIVE

STATUS CODE: 200

BODY: EMPTY

$table

STATUS CODE: 404

{ "error": "NOT FOUND", "message": "Not Found" }

$table has Row

STATUS CODE: 400

{ "error": "PRECONDITION_FAILED", "message": "Table has Rows - Delete first all Table's Row." }

$table is being referred by other table

STATUS CODE: 400

{ "error": "PRECONDITION_FAILED", "message": "Table is defined as FK Table on other Tables - remove the reference to the table first." }