grape_token_auth icon indicating copy to clipboard operation
grape_token_auth copied to clipboard

Override API responses

Open evserykh opened this issue 8 years ago • 1 comments

Hi! I'm using Grape + Grape Token Auth inside an Rails app.

I also use active_model_serializers gem and have an serializer for my User model. API doesn't use the serializer and when I sign in via API I get response containing all user's attributes.

I think there should be a way to override this behavior.

evserykh avatar Aug 05 '16 08:08 evserykh

Hi @evserykh I have a preliminary implementation of this feature in the branch refactor-responses if you would like to check it out and give me feedback, that would be great. Directions for use are in the README there is also a feature spec that corresponds to the behavior you are looking for.

mcordell avatar Oct 11 '16 13:10 mcordell