JSONAPI 按日期范围过滤
JSONAPI filter by date range
GET api 如果过滤器是日期范围,如何发送过滤器参数
例如:
GET /products?filter[created][ge]=2018-01-01&filter[created][le]=2017-01-01
JSON:API 规范与过滤策略无关。但是,下一个方法是在各种库(如 ngx-jsonapi or neomerx json-api)上实现的:
GET /products?filter[created][since]=2018-01-01&filter[created][until]=2020-01-01
GET api 如果过滤器是日期范围,如何发送过滤器参数
例如:
GET /products?filter[created][ge]=2018-01-01&filter[created][le]=2017-01-01
JSON:API 规范与过滤策略无关。但是,下一个方法是在各种库(如 ngx-jsonapi or neomerx json-api)上实现的:
GET /products?filter[created][since]=2018-01-01&filter[created][until]=2020-01-01