REST Service retrive user problem.
On the beginning i want to sorry for my english, it's not my native launguage, so I can make few mistakes.
I'm new to the appery.io platform, but i have some experience in programming (not specifically in JavaScript I'm still learning.)
I making app with permissions system and custom user fields, so I add some fields to user database and add new rest service using this as template http://devcenter.appery.io/documentat... i used Retrive User GET Request Everything works fine but... When i send request to API i get all users from database, in order from older to newest, not user that i want to have. I got something like this:
[
{
"id":"53f**********e9a90",
"username":"user1",
"createdAt":"2014-08-17 06:56:34.943",
"updatedAt":"2014-08-17 17:41:44.309",
"acl":{
"":{
"read":true
},
"53f***********9a90":{
"read":true,
"write":true
}
},
"admin":true,
"active":true
},
{
"id":"53f*****f5558e4",
"username":"user2",
"createdAt":"2014-08-17 17:27:13.753",
"updatedAt":"2014-08-17 17:27:30.969",
"acl":{
"":{
"read":true
},
"53f*************558e4":{
"read":true,
"write":true
}
},
"admin":false,
"active":true
}
]
And if i add more user i got more parts. I send request with.
curl -X GET
-H "X-Appery-Database-Id: "
-H "X-Appery-Session-Token: "
]https://api.appery.io/rest/1/db/users...
user_id - current user id from variable
database_id - (as header) database id from generated config file
session_token - (as header) session token from variable
include - i left it empty becouse i don't know what to do with it (Maybe this is my mistake).
So my question is how to get response with only one user with specified ID?
For example if i have 50 users i want only to have request with user 25, i put he's ID and i want to got something like this
{
"id":"his ID",
"username":"user25",
"createdAt":"2014-08-17 06:56:34.943",
"_updatedAt":"2014-08-17 17:41:44.309",
"acl":{
"":{
"read":true
},
"**********************8":{
"read":true,
"write":true
}
},
"admin":true,
"active":true
},
Thank you in advance.
Best Regards