Thanks Julia, As per follow your above comment my API is working fine in GET method.
Request: localhost:3000/api/v1/users/id/1 ( Method GET ) Headers: Authorization (Key) : Bearer token
Response: { "id": 1, "username": "krishil", "first_name": "Darshan", "last_name": "Modi", "email": "darshanmodi2010@gmail.com", "role": "SuperUser", "age": 37 }
Thanks Darshan Modi
I'm glad it worked! You're welcome! :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks Julia,
As per follow your above comment my API is working fine in GET method.
Request: localhost:3000/api/v1/users/id/1 ( Method GET )
Headers: Authorization (Key) : Bearer token
Response:
{
"id": 1,
"username": "krishil",
"first_name": "Darshan",
"last_name": "Modi",
"email": "darshanmodi2010@gmail.com",
"role": "SuperUser",
"age": 37
}
Thanks
Darshan Modi
I'm glad it worked!
You're welcome! :)