Hello i have this api url
http://127.0.0.1:8000/api/outlay
that brings default values now i want to add filters to this url i tried to follow the example of postman that does it like this:
http://127.0.0.1:8000/api/outlay?startdate=2023-02-14&enddate=2023-02-15
This is what i tried but didnt work:
http://127.0.0.1:8000/api/outlay?startdate='startdateOutlay'&enddate='enddateOutlay'
The startdateOutlay
and enddateOutlay
are calendar input that change value dynamically, is it possible to do such a thing from Javascript
?
You can use template string ``
const apiUrl = `http://127.0.0.1:8000/api/outlay?startdate=${startdateOutlay}&enddate=${enddateOutlay}`;
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments