Skip to main content

All Questions

Tagged with
0 votes
0 answers
28 views

How to modify/complete url on execute in useAxios from vueuse? Or: How to delete item using useAxios?

I'm building a Vue application which makes requests to an REST-API. I want to use "useAxios" from vueuse to make theese requests like below: const {data: todosList, isLoading, error, execute}...
Jakob's user avatar
  • 170
0 votes
1 answer
187 views

Retrieve wordpress user meta using rest API using vue

Im trying to retrieve use meta for a user that is logged in using the rest API but it returns 'user not logged in' as the response. Im presuming its due to not being authenticated but i cant figure ...
jord49's user avatar
  • 582
1 vote
0 answers
94 views

Vue - get current wordpress user data using axios

Im trying to pull the current logged in user data into my headless frontend but data always returns empty - i think its to do with setting a nonce? axios .get('https://example.com/wp-json/v1/get-...
jord49's user avatar
  • 582
0 votes
1 answer
127 views

Axios does not send the form data to the controller

I'm trying to take the name of the list from a sweetalert input and pass it with axios to the CategoryController in order to add it to the database with the add_list() function SideVav.vue : const { ...
Cosmin Carbunaru's user avatar
0 votes
1 answer
547 views

Axios post request to route 'appName/v1/users/' (Djoser) throws 401 error but Postman doesn't

I'm new to Django and trying to build basic user authentication with REST API and a Vue.js frontend. To send the request, I am using axios, which is configured first in a seperate composable axios.js: ...
Artur Müller Romanov's user avatar
-2 votes
1 answer
53 views

How to call REST only after success of another [duplicate]

I have one rest request, it is called several times, and after all its successful responses, I need to call another, how can this be done? I found these two rests, in the normal state they are called ...
whodastack's user avatar
3 votes
1 answer
328 views

Typescript - Type Assertion on Non-Required Values

This is more to validate the correct way of handling things. I'm using Vue front-end with Typescript, posting data to an API through axios. I have reactive objects like: const payload = reactive({ ...
Nick Davies's user avatar
1 vote
1 answer
645 views

Refresh component after insert a new record by REST on VUE 3

There is a simple component with the output of records to a table that reads data from the server (GET) and adds (POST) a record to it at the click of a button. <template> <div> ...
Shoshin's user avatar
  • 43
0 votes
1 answer
444 views

Unhandled Promise Rejection TypeError undefined is not an object (evaluating services drugSearchService getDrugsByCriteria(criteria, val).then)

DrugSearchService.js import axios from "axios"; const DRUG_GENERIC_API_URL ='http://localhost:8080/drug/search/generic/' const DRUG_MAIN_API_URL ='http://localhost:8080/drug/search/...
amitabh priyadarshi's user avatar
0 votes
1 answer
293 views

Post doc to CouchDB from Quasar Vue3 Axios

I have tried a few methods and have not been able to get it to work. The base URL is in the Axios setup file and logging in out it console shows the correct address. Replicating works when using ...
Morgan Hayes's user avatar
0 votes
1 answer
574 views

ERROR 422 when update data inside modal with axios.put [laravel + vuejs 3]

I am using Laravel + VueJS 3 to build a small project, I use axios.put method for update details for single user in a table row via a modal, but I have problems when I click on submit button of a form ...
Joker Dark Knight's user avatar
0 votes
1 answer
466 views

How do I access an array inside a json object?

I am using axios to access the OMDB api. The returned value is saved to a ref([]) object called ombdRatings in my vue component, and I'm trying to access these values to be displayed in the DOM. Here'...
Mr_Happy's user avatar
0 votes
1 answer
304 views

How to get multiple GET API data response from Laravel with Axios? (VueJS)

This is my Laravel PenilaianController: public function index() { // $penilaian1 = PenilaianTahap1::join('peserta_t1', 'nilai_t1.nim', '=', 'peserta_t1.nim') ->join('...
NorthernOsprey's user avatar
1 vote
0 answers
49 views

Can not send api request from vue.js to express [duplicate]

I use axios to send a post request in vue to express, but it doesnt work the backend doesnt respond by the message so it isnt sent to frontend and "posted" not printed in the console, ...
amro3's user avatar
  • 55
1 vote
1 answer
4k views

Downloading an excel file from API response (Vue.JS - front-end, Flask-backend)

I am having some difficulties downloading an excel file in my front-end, which I get through the API response, which I am making to a Flask back-end. This is what I have so far: Flask (Backend) ... ...
Gergan Zhekov's user avatar

15 30 50 per page