Questions tagged [flask-restful]

Flask-RESTful provides an extension to Flask for building REST APIs. Flask-RESTful was initially developed as an internal project at Twilio, built to power their public and internal APIs.

Project repo is maintain on Github currently.
The latest document is here
Its pypi info can be find here

1619 questions
0
votes
2 answers

Wrapping a decorator, with arguments

I'm trying to replace the marshal_with decorator from flask-restful with a decorator that does something before calling marshal_with. My approach is to try to implement a new decorator that wraps marshal_with. My code looks like: from…
learningKnight
  • 321
  • 1
  • 3
  • 14
0
votes
1 answer

Python Flask, connect another url

I simplify my requirement to this simple code from flask import Flask, request import requests app = Flask(__name__) @app.route('/', methods=['POST']) def root(): payload = {'Message': 'yo','Port':'123'} r =…
h8a2n5k23
  • 57
  • 1
  • 7
0
votes
0 answers

flask_restful return json data in bytes

I have the following flask app setup. #!/usr/bin/env python3 import sys import logging from flask import Flask, jsonify from flask_env import MetaFlaskEnv from flask_restful import Resource, Api from flask_restful import reqparse from…
user1187968
  • 7,154
  • 16
  • 81
  • 152
0
votes
1 answer

Android App development for image recognition using Caffe

I am working on a project in which the android app user is suppose to take an image as input and at the back end I have caffe's deployment.py file which takes an image as input and gives category (the image belongs to ) as output. Now How should I…
Abby Jangir
  • 55
  • 2
  • 12
0
votes
1 answer

Marshal flask for express js

I'm looking for a module that do the same as marshal for python flask restful. Put object into a function and send it with good attributes as a json object. Do you know something like that for node/express ? :) Thanks !! Have a nice day !
hayato
  • 1
  • 3
0
votes
1 answer

Active Directory authentication using ldap3 python, how to avoid clear text password

I know the below question has been asked multiple times and answer which i could find is that get SSL certs. But how to go around it without SSL? Here is the problem: I have been implementing a Rest based API which authenticates a user with Active…
Nik
  • 431
  • 1
  • 6
  • 10
0
votes
1 answer

how to get functions of parent classes python

How can I get the function of a parent class (as opposed to the unbound method)? In the example below, I would like to get the function and the doc string of the parent class. We have a list of methods (post, get) and there should be a matching…
ytjohn
  • 197
  • 1
  • 7
0
votes
0 answers

PATCH API request using Ajax and Python : 400 BAD REQUEST

I am getting error 400 BAD REQUEST when I try to send patch data Below is the ajax code that we use for PATCH I use a function called getQueryVariable to extract an ID field from the URL