Project: usergrid
Issue USERGRID-98: POST to /events returns entity that does not exist
When I create a new event entity, the API returns an entity with uuid, but when I do a GET on the entity, the API returns a service resource not found error. GET on the /events endpoint also shows that the entity was not saved. So this POST: curl -X POST "https://api.usergrid.com/fdsafdsa/test/events" -d '{"timestamp":201111211437, "category":"testcat"}' Returns this response: { "action" : "post", "application" : "4a1edb70-d7a8-11e2-9ce3-f315e5aa568a", "params" : { }, "path" : "/events", "uri" : "http://api.usergrid.com/fdsafdsa/test/events", "entities" : [ { "uuid" : "c8a283c6-e79b-1038-8735-1d2142858146", "type" : "event", "created" : 1372888238225, "modified" : 1372888238225, "timestamp" : 201111211437, "category" : "testcat", "message" : null, "metadata" : { "path" : "/events/c8a283c6-e79b-1038-8735-1d2142858146" } } ], But a GET on /events/c8a283c6-e79b-1038-8735-1d2142858146 returns this error: {"error":"service_resource_not_found","timestamp":1372888258143,"duration":0,"exception":"org.usergrid.services.exceptions.ServiceResourceNotFoundException","error_description":"Service resource not found"}
Story points: 3