Python Forum
Flask rest api How to retrieve json request
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flask rest api How to retrieve json request
#5
This solved my problem;
# POST /purchase_initiation
@app.route('/purchase_initiation', methods=['POST'])
def initiation():
    try:
        # getting request data
        request_data = request.form.to_dict()
Reply


Messages In This Thread
RE: Flask rest api How to retrieve json request - by raysefo - Jan-20-2019, 06:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  API Request / JSON illmattic 3 989 Aug-01-2023, 10:14 AM
Last Post: Gaurav_Kumar
  REST API using flask - limit connection? korenron 1 1,274 Feb-05-2023, 06:48 PM
Last Post: noisefloor
  Flask Rest API - fire and forget MorganSamage 2 1,596 Feb-04-2023, 11:09 AM
Last Post: MorganSamage
  Flask TypeError: Object of type Decimal is not JSON serializable mekacharan 0 3,976 Jul-15-2021, 05:28 AM
Last Post: mekacharan
  Flask Basics request.form ifigazsi 0 1,811 Feb-09-2021, 09:05 AM
Last Post: ifigazsi
  Flask request.form ifigazsi 2 3,748 Feb-02-2021, 11:56 AM
Last Post: buran
  Retrieve images base64 encoded MongoDB and Flask Nuwan16 2 3,319 Oct-13-2020, 06:25 PM
Last Post: Nuwan16
  Return Frame as well as JSON response using same API in Flask Python Ask jenkins43 0 1,877 May-11-2020, 04:58 PM
Last Post: jenkins43
  Simple flask rest api problem cancerboi 4 2,837 Jan-29-2020, 03:10 PM
Last Post: brighteningeyes
  Flask redirect(request.url) returns None iFunKtion 1 10,504 Nov-27-2018, 10:50 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020