Lines Matching refs:router
45 var userC1 = router.create("Users", null, scimUser1)
47 var userC2 = router.create("Users", "bjensen@example.com", scimUser1)
49 var userC3 = router.create("Users", "paramTest", scimUser1, { "x" : "marksTheSpot" })
52 var userC4 = router.create("Users", "badParamTest", scimUser1, { "_x" : "badParam" })
53 throw { "error" : "Assertion failed: router.create should have disallowed unknown parameter" } ;
65 var userR1 = router.read("Users/" + userC1._id)
67 var userR2 = router.read("Users/bjensen@example.com")
69 var userR3 = router.read("Users/paramTest", { "x" : "marksTheSpot" })
72 var userR4 = router.read("Users/badParamTest", { "_x" : "badParam" })
73 throw { "error" : "Assertion failed: router.read should have disallowed unknown parameter" } ;
93 var userU1 = router.update("Users/" + userC1._id, userR1._rev, scimUser1Updated)
95 var userU2 = router.update("Users/bjensen@example.com", userR2._rev, scimUser1Updated)
97 var userU3 = router.update("Users/paramTest", userR3._rev, scimUser1Updated, { "x" : "marksTheSpot" })
100 var userU4 = router.update("Users/paramTest", userR4._rev, scimUser1Updated, { "_x" : "badParam" })
101 throw { "error" : "Assertion failed: router.update should have disallowed unknown parameter" } ;
128 var userQ1 = router.query("Users", queryParams1)
132 var userQ2 = router.query("Users", queryParams2)
133 var userQ3 = router.query("Users", queryParams2, callback)
142 var userQ4 = router.query("Users", queryParams2, printResult)
145 var userQ5 = router.query("Users", queryParams2, printResult)
149 var userQ6 = router.query("Users", queryParams2, printResult)
150 throw { "error" : "Assertion failed: router.query should have disallowed unknown parameter" } ;
163 var userD2 = router.delete("Users", null, { "_illegal" : "parameter"})
164 throw { "error" : "Assertion failed: router.delete should have disallowed unknown parameter" } ;
176 var userA1 = router.action("Users", "clear", {}, {})
179 var userA2 = router.action("Users", "clear", {}, {"_allowThis" : "parameter"})