폴리머 앱을 개발 중이며 RestApi를 호출하려고합니다. 이있는 요청 본문 내가 내가 PARAMS 이러한 매개 변수를 지정하는 방법의 적절한 아이디어를 얻고 있지 않다RestApi는 폴리머의 iron-ajax를 호출합니다.
{
"languageId": Presently English is the only supported language. Always 1,
"productCode":"Medicus",
"timeZoneName":"Time zone name of device. For e.g. Asia/Calcutta",
"timeZoneOffset": Time zone offset from UTC in milliseconds. For e.g. IST = 19800000,
"user":{
"firstName":"First name of the user",
"lastName":"Last name of the user",
"middleName":"Middle name of the user",
"password":"Password provided by the user",
"userTypeId":2 = Doctor, 3 = User,
"fields":[
{
"Id":1,
"values":["Mobile number provided by the user”]
}
]
}
}
얼마나 = '{}'철 - 아약스 요소.
, 당신의 JSON이 유효 http://jsonlint.com을 확인하고이 코드를 붙여 넣습니다.. 당신이 잘못 무엇을 볼 수 –