Skip to content

Allow passing query params to GET method directly #6150

Closed

Description

@KaKi87

Is your feature request related to a problem? Please describe.

The axios.post() request method alias is indeed convenient but the axios.get() one actually isn't as it requires the same things as axios().

Describe the solution you'd like

Just like there's axios.post(url[, data[, config]]), there could be axios.get(url[, params[, config]]).

Describe alternatives you've considered

None

Additional context/Screenshots

The same convenience could also be added to DELETE/HEAD/OPTIONS like POSTS's is also added to PUT/PATCH.


Thanks

Activity

  1. jasonsaayman commented on Aug 17, 2025

    @jasonsaayman
    Member

    i dont think the method signature is something we would be chaning soon, but i could welcome a non-breaking PR, however for now i am going to close this issue

  2. KaKi87 commented on Aug 17, 2025

    @KaKi87
    Author

    i dont think the method signature is something we would be chaning soon

    What about for a v2 ?

    non-breaking

    What would that be ?

  3. jasonsaayman commented on Aug 17, 2025

    @jasonsaayman
    Member

    yeah fair i guess there is no "non-breaking" manner to do this... i will add as someting to look at in v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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