-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
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. |
Working on it now. Give me a sec. My webrick server isn't working smh |
Check my pull request and I'll merge |
awesome |
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.
The text was updated successfully, but these errors were encountered: