Skip to content

Enhance support for getMethodOverride in getList function #187

@chander

Description

@chander

The ability to perform GET-as-POST using the overrideMethods functionality of restangular is very useful; however it's only implemented partially.

One of the common use cases with GET as POST is to have a payload that is too large to be passed in as part of the URL's GET querystring. Using POST instead allows the request to bypass these restrictions, and the need to change settings on servers such as Nginx to support what might ab absurdly long URL.

This issue was identified and corrected by @SamanthaAdrichem some time ago - but was (for whatever reason) never merged into mgonto's Restangular branch.

The fix is referenced in a PR here:

https://github.com/SamanthaAdrichem/restangular/commit/cc03340b0be428ea9c0f75bf34eb453743b7fb0d

and in a ticket here: mgonto/restangular#1329

Adding in the functionality would allow GET-as-POST to also send the Payload in the POST body, instead of in the querystring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions