我有一个关于Amazon Api Getway的问题,您能帮我吗? 我们需要以下格式的网址:
A)。过滤器
filter[<fieldName>]=MyName
示例:
GET ../cost_codes?filter[name]=Monique
GET ../cost_codes?filter[type]=construction
B)。多个过滤器
filter[<fieldName>]=FirstName,SecondName
示例:
GET ../cost_codes?filter[name]=Monique,Samuel
GET ../cost_codes?filter[type]=construction,demolition
C)。比较类型
-lt less than
-le less than or equal to
-eq equal to
-ge greater than or equal to
-gt greater than
-starts string starts with
-ends string ends with
-contains string contains
filter[<fieldName>]-lt =FirstName,SecondName
示例
?filter[lastModifiedTime]-ge=2016-10-15
?filter[lastModifiedTime]-ge=2016-10-15T08:00&filter[lastModifiedTime]-le=2016-10-15T22:00
感谢您的帮助。