Closed
Description
Hello, so I have a concern related to the find method. I noticed that if for some reason the specified id for model record is nil and passed into the api find method it will interpolate the nil on the end of the query string when performing the request. This means the index action instead of the show action is called and returns the entire collection of specified model records. Wouldn't it be ideal for the api client lib to handle this nil behavior and throw a client error (argument error)? I would really like some feedback on this. I would prefer not to have to...
- Fork the lib.
- Handle nil checks via the consuming application.
- Write some custom hacks to handle checks in client wrappers.
Thanks, and TGIF :)
Metadata
Metadata
Assignees
Labels
No labels