Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

REQUEST

HTTP ELEMENT

Value

URI

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

METHOD

DELETE

RESPONSE

HTTP ELEMENT

Value

BODY

STATUS CODEBODY

204 - The Resource/Row is successfully deleted

404 - The Resource/Row is non-existing.

SCENARIO

RESPONSE

POSITIVE

STATUS CODE: 200

BODY: EMPTY

$table

STATUS CODE: 404

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

$table has Row

STATUS CODE: 400

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

$table is being referred by other table

STATUS CODE: 400

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