-2

I have written a flask api which recieves post request params using request.form. API performs perfectly in postman but fails in axios request.

1 Answers1

0

You can try this way.I hope it will helps you.

axios({
      method: 'post',
      url: '/user/12345',
      data: {
        firstName: 'Fred',
        lastName: 'Flintstone'
      }
    });
Komal Sakhiya
  • 718
  • 4
  • 9