svrcekmichal / redux-axios-middleware

Redux middleware for fetching data with axios HTTP client
MIT License
917 stars 96 forks source link

Params to request #84

Open cedanoernesto opened 6 years ago

cedanoernesto commented 6 years ago

If I want to add params to my request without add it in the URL, it allows to add something like {params}?

ngautam0 commented 6 years ago

@cedanoernesto

Yes, it does.

For e.g


  payload: {
    request: {
      url: '/form',
      params: {
        moduleid: 'application-form'
      }
    },

will trigger a request like :

https://yourbackend.url/api/form?moduleid=application-form

If this is not what you were looking for, can you elaborate your question.