Top "Flask-restful" questions

Flask-RESTful provides an extension to Flask for building REST APIs.

RuntimeError: working outside of application context

app.py from flask import Flask, render_template, request,jsonify,json,g import mysql.connector app = Flask(__name__) **class TestMySQL():** @…

python mysql flask werkzeug flask-restful
flask restful: passing parameters to GET request

I want to create a resource that supports GET request in following way: /bar?key1=val1&key2=val2 I …

python rest flask flask-restful
Flask API TypeError: Object of type 'Response' is not JSON serializable

i have a problem with Python Flask Restful API and data goes to Elasticsearch, when i post a new data …

python rest flask flask-restful
Python Flask-Restful POST not taking JSON arguments

I am very new to Flask (& Flask-Restful). My problem : json arguments for a POST is getting set to NONE (…

python json rest flask flask-restful
Flask RESTful cross-domain issue with Angular: PUT, OPTIONS methods

I've developed a small write-only REST api with Flask Restful that accepts PUT request from a handful of clients that …

python angularjs flask cors flask-restful
Flask-RESTful - Upload image

I was wondering on how do you upload files by creating an API service? class UploadImage(Resource): def post(self, …

python flask flask-restful
Flask RESTful API multiple and complex endpoints

In my Flask-RESTful API, imagine I have two objects, users and cities. It is a 1-to-many relationship. Now when I …

python rest api flask flask-restful
How to apply integration tests (rather than unit tests) to a Flask RESTful API

[As per https://stackoverflow.com/a/46369945/1021819, the title should refer to integration tests rather than unit tests] Suppose I'd like …

python flask integration-testing flask-restful werkzeug
Flask Restful add resource parameters

I am looking to pass an object instance as a parameter into a Flask-RESTfull Resource. Here is my setup: # in …

python rest flask flask-restful
Flask-RESTful vs Flask-RESTplus

Other than the ability to automatically generate an interactive documentation for our API using Swagger UI, are there any real …

flask flask-restful flask-restplus