我已获得分配,具有权限endint。这将返回我可以使用的观点列表。如下所示,其中两个在PUT&POST。没有在作业的任何地方规定这些调用的内容。
问题
我有什么方法可以确定身体应该是什么?
我没有得到更多信息。我缺少明显的东西吗?
示例
GET https://endpoint.com/@{xxx}/permissions
哪个返回:
{
"continents": {
"order": 2,
"actions": {
"show": true
},
"children": {}
},
"car manufacturers": {
"order": 3,
"actions": {
"show": true
},
"children": {}
},
"products": {
"order": 1,
"actions": {
"show": true,
"getItems": {
"type": "GET",
"URL": "https://endpoint.com/@{xxx}/products"
},
"updateItem": {
"type": "PUT",
"URL": "https://endpoint.com/@{xxx}/products/{id}"
},
"addItem": {
"type": "POST",
"URL": "https://endpoint.com/@{xxx}/products"
}
},
"slug": "/products/",
"children": {}
}
}
如果我尝试随机的JSON正文,例如:
POST https://endpoint.com/@{richardmarais}/products
我得到:
{
"code": 500,
"error": "Invalid use of type \"undefined\" as a Firestore argument."
}