Skip to content

How do I fetch request params inside an Entity ? #115

Closed
@bilal62

Description

@bilal62

Hello,

I'm trying to get the request params inside an Entity file. What is the best way to do that ?
The documentation says it should be in options[:env]['grape.request.params'] but it doesn't seem to work.
I could only get the params using options[:env]["rack.request.query_hash"] but I had to manually convert the number params to integers for me to be able to use them.
Is there a better way to get those params ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions