解决了

REST API创建保护域

  • 2014年9月25日
  • 1回复
  • 945意见

徽章 +5
我正在尝试创建一个保护域,但无法弄清楚如何提供保护域的名称。

我必须使用字符串和JSON对象作为身体参数,但它不断丢弃错误。

我尝试过的JSON对象:

{“名称”:“ mytestname”}
{“身体”:“ mytestname”}
{“输入”:“ mytestname”}

图标

最好的答案科恩2014年9月25日,12:35

{\"value<\/b>\":\"MyTestName\"}","className":"post__content__best_answer"}">
查看原件

1回复

徽章 +5
我使用Chrome Developer工具来监视Prism GUI的POST请求,并且正确的JSON对象字段名称为“ value” - > {”价值“:“ mytestname”}

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu