Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios get request with nested params serialize qs

axios({
  method: 'post',
  url: 'https://my-api.com',
  data: qs.stringify({
    item1: 'value1',
    item2: 'value2'
  }),
  headers: {
    'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
  }
})
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #axios #request #nested #params #serialize #qs
ADD COMMENT
Topic
Name
4+6 =