Mock Postman request into Axios?

后端 未结 1 897
攒了一身酷
攒了一身酷 2021-01-13 12:50

I\'m trying to construct my axios to be able to mimic the postman request but failed. Please help to have a look

const ax = ax         


        
相关标签:
1条回答
  • 2021-01-13 13:46

    You can make use of the code-generation feature in Postman.

    Click on Code (below Save button) > Search for 'Axios' > NodeJS - Axios

    Docs for code generation in Postman: https://learning.getpostman.com/docs/postman/sending_api_requests/generate_code_snippets/

    0 讨论(0)
提交回复
热议问题