Skip to content
Advertisement

How to use Flask API to post two variables via Postman and run a function using them in that call?

I have the following function : `

JavaScript

`

Now I want to use a Flask API and call this function to run with two variables that I will provide via Postman, DOCname and TABLEid, but I’m not sure how to run this at the same time I make an API call ?

I tried to run the file under a post request but nothing seems to happen.

Advertisement

Answer

It can be done in following way. The data from the Postman should be send through the forms .

JavaScript

enter image description here

Advertisement