Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a quick fix for this #18

Closed
sakshyamdahal opened this issue Feb 7, 2015 · 4 comments
Closed

Need a quick fix for this #18

sakshyamdahal opened this issue Feb 7, 2015 · 4 comments

Comments

@sakshyamdahal
Copy link
Collaborator

with this api call https://fathomless-temple-1065.herokuapp.com/api/v1/users/barbers

you get a json response that looks like:

[
{
user: {
id: 1,
fname: "Sam",
lname: "Wan"
}
},
{
user: {
id: 2,
fname: "Ik",
lname: "Tu"
}
},
{
user: {
id: 3,
fname: "Md",
lname: "Trih"
}
},
{
user: {
id: 5,
fname: "Ed",
lname: "Fur"
}
}
]

all i want is instead of user 'id' return the profile 'id' without changing anything for the same api call.

@sakshyamdahal
Copy link
Collaborator Author

The reason this is important is that when displaying the barbers i only have this 'id' to identify who a user clicked on. But to display the profile of the barber i would need his profile id instead of user id.. and since profile id and user id for barbers maybe different this fix is necessary.

@eddiem3
Copy link
Owner

eddiem3 commented Feb 8, 2015

Working on it now. Give me a sec. My webrick server isn't working smh

@eddiem3
Copy link
Owner

eddiem3 commented Feb 8, 2015

Check my pull request and I'll merge

@eddiem3 eddiem3 closed this as completed Feb 8, 2015
@sakshyamdahal
Copy link
Collaborator Author

awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants