Gar*_*ain 5 amazon-web-services amazon-dynamodb aws-api-gateway
我有一个Dynamo Db表,其中包含以下内容
{
"primary_key": {
"S": "series"
},
"sort_key": {
"S": "type-of-brokers"
},
"title": {
"S": "Types Of Brokers"
}
,
{
"primary_key": {
"S": "series"
},
"sort_key": {
"S": "type-of-brokers-2"
},
"title": {
"S": "Types Of Brokers-2"
}
Run Code Online (Sandbox Code Playgroud)
在此之后,我实现了application / json主体映射模板:
{
"TableName": "table_name",
"Key" :{
"primary_key" :{
"S": "series"
},
"sort_key" : {
"S": "type-of-brokers"
}
}
}
Run Code Online (Sandbox Code Playgroud)
它返回与主键和排序键匹配的一项!
现在我想返回所有匹配的primary_key项目,即不sort_key
我该如何实现?API网关主体映射模板?
另外,api可以返回常见的json而不是“ S”类型,在此它可以指定属性,可以通过不进行硬编码来实现integration response
| 归档时间: |
|
| 查看次数: |
3772 次 |
| 最近记录: |