Delete processing needs to pass the primary key.

Call it by including the primary key in the URL.

@RequestMapping(value="/rest/[modelid]/edit/{pkey}", method=DELETE)

URL Example

http://localhost:8921/wagby/rest/customer/edit/1000

response

STATUS=200 OK
Here is an example of the content of the return.

{
 "errors": {
   "jfcinfo": [
     {
       "name": null,
       "content": "顧客情報データの削除処理は正常に行われました。",
       "code":"success.normal.termination.delete"
     }
   ],
   "jfcwarn": [],
   "jfcdebug": [],
   "jfcerror": []
 },
 "status":"showListCustomer$2",
 "pkey": "1000"
}

Give the primary key as a parameter.

@RequestMapping(value="/rest/[modelid]/edit/{pkey}", method=DELETE)

URL Example

http://localhost:8921/wagby/rest/customer/edit?customerid=1001

response

It is similar to "$ {content_ 0 _ name}".