APIJSON icon indicating copy to clipboard operation
APIJSON copied to clipboard

PUT, DELETE 请求将除id外的其他字段作为where条件如何使用

Open gxmanito opened this issue 1 year ago • 1 comments

Description

你好,作者,想咨询一下,apijson6.3.0版本,配置IS_UPDATE_MUST_HAVE_ID_CONDITION = false后,将其他条件作为修改或者删除的where条件,参数该如何写呢 https://github.com/Tencent/APIJSON/issues/509,查了一下这个需要引入apijson-router,不引入可以实现这个功能吗

gxmanito avatar Aug 08 '24 08:08 gxmanito

DELETE 所有键值对都是条件;PUT 有功能符的就是条件,没有功能符的需要 @combine 指定为条件 https://github.com/Tencent/APIJSON/issues/277

为什么限制在GETS中使用@combine https://github.com/Tencent/APIJSON/issues/425

TommyLemon avatar Aug 11 '24 08:08 TommyLemon