grape-entity icon indicating copy to clipboard operation
grape-entity copied to clipboard

An API focused facade that sits on top of an object model.

Results 96 grape-entity issues
Sort by recently updated
recently updated
newest added

Hello, Reading http://www.rubydoc.info/github/intridea/grape-entity/Grape%2FEntity.present_collection and I think there might be a bug in documentation. Definition ``` class Users < Grape::Entity present_collection true expose :items, as: 'users', using: API::Entities::Users end ``` Usage...

bug?

I have an entity that I am using both for presenting an array of `Item` objects as well as singular `Item` objects. I was surprised to see that when returning...

question
bug?

See https://github.com/ruby-grape/grape/issues/1350, possibly a regression?

bug?

I have the following empty entity: ``` ruby class Project < Grape::Entity end ``` Although the entity is empty the JSON response contains a field `permission`: ``` json { "permissions":...

bug?

I am using grape, grape entity, and rails together for an api. I have a rails model that has a column, `format`. When I try to expose this column, I...

bug?

Hi, I was trying to present a hash of values with a grape entity. The keys in the hash were strings and I got null values all over the place...

question
feature

When you have an entity which exposes an ActiveRecord `belongs_to` without a `:using` option, then `serializable_hash` is called with a `Grape::Entity::Options` object. But serializable_hash clones the object and then tries...

question
feature

Hey. Is there a way to expose all fields by default, and only `unexpose` certain ones? For example, suppose I have a `User` class that I want to present, but...

question
feature

When using entity documentation as params they don't show whe calling then 'declared' method. ``` ruby namespace :cdrs do desc 'Shows all Outbound CDRs.', params: Entities::CdrSearch.documentation params do optional :fields,...

feature

Hi this is my code. When I'm using entities as grape params, whenever i do a post request, it returns me name invalid, email invalid, id invalid, etc. Everything is...

bug?