Reputation: 201
Followed the documentation to create Users to Pets - Many to Many Relationship in Sails JS V10.5 - BluePrint API with MongoDB v2.6
Yet localhost:1337/user/54e38754b27f02212458e68e/pets?name=Pinkie%20Pie Finding the Owner's Pet by Name works ..
{ "name": "Pinkie Pie", "color": "pink", "createdAt": "2015-02-17T18:24:20.720Z", "updatedAt": "2015-02-17T18:24:20.720Z", "id": "54e38754b27f02212458e691" }
But when the same pet is accessed via its ID localhost:1337/user/54e38754b27f02212458e68e/pets?id=54e38754b27f02212458e691 , the REST API is not returning any value.
Can you please let me know, how to enable additional logs to troubleshoot this basic Blueprint REST API access?
Upvotes: 0
Views: 1033
Reputation: 71
Have you tried using
GET /user/54e38754b27f02212458e68e/pets/54e38754b27f02212458e691
? The same applies also to POST and DELETE requests.
Upvotes: 0