Questions tagged [flask-restless]

Flask-Restless provides simple generation of ReSTful APIs for database models defined using SQLAlchemy (or Flask-SQLAlchemy)

Flask-Restless provides simple generation of ReSTful APIs for database models defined using SQLAlchemy (or Flask-SQLAlchemy). The generated APIs send and receive messages in JSON format.

116 questions
1
vote
1 answer

flask-restless with mod_wsgi can't connect to MySQL server

I am trying to run a flask-restless app in apache using mod_wsgi. This works fine with the development server. I have read everything I can find and none of the answers I have seen seem to work for me. The app handles non-database requests properly…
1
vote
0 answers

Flask-Restless API Endpoints only work sometimes

I am building a Webservices API using Flask-Restless, Flask-SQLAlchemy and SQLite3. I have a class called Place, which also is a table containing different places around my city. From what I understand I should be able to post new data at endpoints…
accraze
  • 1,522
  • 7
  • 20
  • 46
1
vote
1 answer

Implementing Hypermedia using flask-restless

I already have a REST API implemented using flask and the flask-restless extension. To make navigation easier, I wanted to implement Hypermedia-style links. I can write a postprocessor to insert the links manually but it feels hacky. Is there a…
Shantanu Tushar
  • 103
  • 1
  • 7
1
vote
0 answers

Flask-Restless support for datastores other than models or tables

Flask-Restless support and creates API's over models . can it also support custom collections?Lets say i design a datastructure or a object which i provide getter and setters can it be used as a model in Flask-restless.
vins
  • 11
  • 3
1
vote
1 answer

HTTP 404 errors on trivial Flask-Restless app

I've installed Flask-Restless and am trying to run the quickstart app. All requests return a 404 error (both in the python logs and in the curl response). My whole setup is: $ virtualenv venv --distribute $ source venv/bin/activate $ pip install…
Rob Napier
  • 286,113
  • 34
  • 456
  • 610
1
vote
1 answer

Flask-Restless GET request throwing up SQLAlchemy error

I'm needing to implement an API for my Flask application and have seen recommendations for Flask-Restless. I've run in to kind of a wall with just basic usage of this library and hoping someone who has used it can assist. Creating the API manager…
Kylee
  • 1,625
  • 1
  • 31
  • 54
0
votes
1 answer

flask application - 100% memory and cpu consumption

In my flask application , we are observing very high memory and cpu consumption almost 100% CPU and memory for one of the API call. We are using flask-rest-json api package . In our model we have many tables like TABLE A - Parent Table B -…
nja
  • 67
  • 2
  • 13
0
votes
0 answers

Flask filter by url

I'm using Flask-Restless and Flask-SQLAlchemy on my application. I can't remember when, but I did a example that I'm almost 100% it was with Flask-Restless to filter a query in the url like /example?id=1. Although the pagination plugin is ok, I…
0
votes
1 answer

Edit and Update Method is Not working

My problem is, edit and update the values by using python-flask from client side. I don't have any idea about that and new python-flask using MySQL database. I tried this method for edit and update purpose.But, it's not working.Additionally the…
0
votes
1 answer

Flask + Restless fails to reload in debug mode

I'm writing my first Flask-Restless API, and came to a small issue that is annoying me a bit. It works fine if I it is not in DEBUG MODE. But if I set the debug mode to True, the application seems to break while trying to reload (but it happens when…
dfranca
  • 5,156
  • 2
  • 32
  • 60
0
votes
2 answers

Connect Flask Restless API to Admin-on-rest (React)

I'm learnig flask and react to create a rest API (whit flask) and a rest client (whit react, Admin-on-Rest). I have create the Rest API whit Flask Restless. I'm searching for some advices to connect the API to the client, but can't found what I…
0
votes
1 answer

Application Not Registered Error with flask-restless

I've been trying to make the code on https://github.com/graup/flask-restless-security work for a while. After I had failed to incorporate this in my own code I decided to simply just use this prepared code. However when I try to run server.py it…
krypt
  • 439
  • 1
  • 4
  • 13
0
votes
1 answer

Parsing whole terms in Python/json profanity filter

I have a json file containing terms to check against for a profanity filter. ["bad", "word", "plug"] And I am using this (found from another article) to parse the json and search any data object for set words. def word_filter(self,…
draxous
  • 59
  • 2
  • 10
0
votes
1 answer

Why does my POST requests on flask-restless==1.0.0b1 result in ERROR:400 MissingData

I have the following code: import requests data = {u"username":u"cryarchy", u"password":u"Pass1234", u"email":u"email@domain.com"} url = "http://localhost:5000/api/account" headers = {"Content-Type":"application/vnd.api+json",…
Archy
  • 280
  • 3
  • 13
0
votes
1 answer

How to handle optimistic concurrency for REST resources?

I'm using a RESTful framework (Flask-Restless 0.17.0 with Flask-SQLAlchemy) as a backend. And AngularJS as a frontend. I know one can handle concurrency using for example a version column (or a timestamp or a checksum of the data) for a single…
Wieger
  • 663
  • 1
  • 9
  • 24