Questions tagged as 'axios'

0
answers

Problems with vue in a project Laravel

This is my project. link It is able to save, delete and edit, but when I do the actions I can not perform the automatic refresh in the browser, I do not even know where to start, could anyone give me a tip? This is my repository = >...
asked by 05.11.2017 / 20:53
2
answers

Doubt REST - POST

I would like to know if it is possible after the resolution of the promise of a POST if I can get the result and transform into an array Ex: axios.post(http://localhost:5000/api/horario/,{ Nome: nome, Horario: horario })...
asked by 13.09.2017 / 16:16
1
answer

Error: Can not read property 'protocol' of undefined

Template: <input type="text" v-model.trim="enterURL" placeholder="Enter URL here" @keyup.enter="Entered"> <v-btn icon @click.native.stop="Entered"> <v-icon>send</v-icon> </v-btn> Script: Entered(enterURL)...
asked by 19.09.2017 / 19:05
1
answer

How to update properties in React setState

I'm trying to add objects to the 2 property of the FecthApis component. I make the call to the two Api's, and receive the requisition with the expected objects. However, when I try to include these objects in both properties with "setState", I g...
asked by 17.05.2017 / 21:01
1
answer

Download PDF Files in ReactJs

I have a small problem downloading files into PDF I have an API that returns a array of bytes with type : "application/pdf" , if I call directly in the browser my route. Ex: localhost/api/download/pdf/{id} PDF download...
asked by 31.05.2017 / 20:57
2
answers

API works on POSTMAN, but not on code

I am trying to access an API, by postman, it works and returns the json normally, since the code (using VueJS + Axios) does not return, from the CROSS error, how can this? and does the axios return normally? let headers = { 'Authorizat...
asked by 05.06.2017 / 15:20
1
answer

Problem when mapping api with Axios and React,

Good afternoon guys, are you okay? I'm trying to make an application with React, however, when trying to map a random API, to try to render the data, it can not return what I'm trying to pull. Would anyone know the problem? Ps: I had ty...
asked by 27.12.2017 / 21:03
2
answers

AJAX Axios loading JavaScript

I am doing an AJAX request using the Github API by the axios and wanted to know how I do for while loading the information, it gives a console.log('carregando'); and create a component written "loading", and after that it deletes the load...
asked by 05.09.2018 / 22:07
1
answer

Http Get Request with Axios

I need help to make a get for my restAPI by passing parameter (I do not know if that's the way it's called, if I can speak the way I say it, I appreciate it!) . What I do is call a list in link axios.get(' http://localhost:...
asked by 19.10.2017 / 21:08
1
answer

Axios GET is not collecting any personally identifiable information

Save, I'm having trouble collecting data from a weather API. My goal is to collect a lot of the rain data and for this I am using Vue Axios but I can not collect anything because even after changing the code the same error continues. Code:...
asked by 20.11.2018 / 17:59