Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Struggling to GET user details for individual user

You should map this response parameter to localStorage variable in response mapping section.

Andrew Gilmour5879596
Posts: 0
Joined: Wed May 22, 2013 1:22 pm

Struggling to GET user details for individual user

Hi Marina,

One problem, I can't set _id as a variable - it doesn't allow underscore.

Kind Regards

Andrew

Andrew Gilmour5879596
Posts: 0
Joined: Wed May 22, 2013 1:22 pm

Struggling to GET user details for individual user

Hi Marina,

I have changed the variable to _id but it is still bringing up all of the records.

Andrew Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Struggling to GET user details for individual user

Hi Andrew,

In localStorage you can use name UserID. When building with the use of this field, its name is not important.

Andrew Gilmour5879596
Posts: 0
Joined: Wed May 22, 2013 1:22 pm

Struggling to GET user details for individual user

Thanks Katya,

I'll try that in the app but when I run the test on the database it is still showing multiple records - see my last screenshot.

Kind Regards

Andrew

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Struggling to GET user details for individual user

Andrew,

Request parameter _id shouldn't be in header. Untick "Header" from _id field: Image

Andrew Gilmour5879596
Posts: 0
Joined: Wed May 22, 2013 1:22 pm

Struggling to GET user details for individual user

And it works!

Many thanks Katya - the app is now only displaying one user record.

Kind Regards

Andrew

Return to “Issues”