X
X
Xymis2020-08-13 19:24:24
JSON
Xymis, 2020-08-13 19:24:24

How to send GET request with json and read data on Flask server?

Hello!
There is a link on the site
when you click on it

$.ajax({
        url:'/article',
        method:'GET',
        dataType:'json',
        data:{'article':13},
        success: function(response){
            console.log("Success")
        },
        error: function(e) {
            console.log("Erroe")
        }
    })


Sent to a python-Flask view, the question is how to read data via request on the server? No way out already many attempts

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question