Apologies, I didn’t get an email update when the last comment happened
I was using the dreamfactory swagger API interface and attempting to do exactly
POST https://localhost:443/rest/test_app_mongo/appointment
{"next_appointment":new Date("2014-11-15T17:30:00")}
Which comes back with:
{
"error": [
{
"message": "JSON Error: Syntax error, malformed JSON",
"code": 500
}
]
}
I hadn’t run into documentation on the record wrapper, so I think that’s what I was looking for. I’m still not exactly sure, though, as running through the swagger API interface I’m posting
POST https://localhost:443/rest/test_app_mongo/appointment
{"record":[{"name":"test", "next_appointment":new Date("2014-11-15T17:30:00")}]}
and I’m getting back a 500 of malformed JSON, still:
{
"error": [
{
"message": "JSON Error: Syntax error, malformed JSON",
"code": 500
}
]
}
It’s looking like we’re probably going to just use device based milisecond encoded dates, but this is nagging at me a bit.