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
2 answers

How to host flask(python) in nginx server

I have some html file I need to route it thorough flask(python) but how to do taht in a nginx server how can I do it
1
vote
1 answer

How to create object together with related object in same POST method using Flask-rest-jsonapi / JSON API?

I have a scenario where i would like to create one new parent object with new child object using FLASK-REST-JSON API package . e.g Scenario like to create a new Person with new computer in one POST method itself. As per official documentation , we…
nja
  • 67
  • 2
  • 13
1
vote
0 answers

flask- Wrong URL encoding

I am facing very strange issue in Flask and flask-rest-jsonapi spec. If I send below url using postman i am getting very weird behavior :- Not working URL:- http://127.0.0.1:5000/v1/recordings?filter=[ { "name": "rtags", "op": "any", …
nja
  • 67
  • 2
  • 13
1
vote
1 answer

How to setup uploading binary objects through flask_restless endpoint?

I am working on a REST python application and I have picked flask_restless to build endpoints connected to the database. One of the tables I would like to manage is storing binary files as blobs (LargeBinary). I have noticed, though, that…
Wojciech Migda
  • 738
  • 7
  • 16
1
vote
1 answer

flask restless bulk delete using angularjs or javascript, is that possible?

I want to do bulk delete using angularjs http request to flask restless api version 0.17.0. I know that I can do it one by one, using id of record in url. But I would be pleased if this is possible in one request. I am not sure if this is…
TomRavn
  • 1,134
  • 14
  • 30
1
vote
1 answer

flask-restless dont work with hybrid property in my models

I am create api for our front-end dev and i have problem with objects in my model. I use flask-sqlalchemy and python2.7 manager = flask_restless.APIManager(app, session = s) manager.create_api(Basic_Abones) ORM model class Basic_Abones(Base): …
1
vote
1 answer

how to give the hyperlink in tag for flask deletion method

how to give the hyper link for flask deletion method. Here it is the code HTML code. I have written in HTML for hyperlink. So, how to give pass the url in flask route. I'm working with a Flask framework, and I am trying to delete an entry from the…
1
vote
1 answer

getting 404 error using flask-restless

I have an existing mysql database, and I'm trying to create an API to access it, but I'm receiving a 404 error. I have two versions of code that don't work. Could someone please point me in the right direction? URL I'm using:…
SO03112
  • 178
  • 2
  • 12
1
vote
1 answer

flask-restless use pagination or get full response

Sometimes I want to get from a resource the full response and sometimes I want it with pagination. Until now I was only able to use either the one or the other. But isn't there a way to set flask-restless to use both depending on the paramters i…
mbijou
  • 87
  • 1
  • 2
  • 12
1
vote
0 answers

Flask-Restless dump_to of primary key field

I am running into an issue that may be bug, but want to verify it with the community. I am basically trying to conform to camelcase for transporting data, then underscore for the database. However, on the person_serializer, flask-restless will…
1
vote
2 answers

Python / Flask - Using flask_restless with flask_httpauth

my objective in this question is to secure my API. in my application, I'm using Flask and flask_restless's APIManager to provide CRUD API to my Person object. code sample: manager = APIManager(app, flask_sqlalchemy_db=db) manager.create_api(Person,…
Motassem Kassab
  • 1,744
  • 4
  • 21
  • 40
1
vote
1 answer

How to run a Flask-restless api filter query on JSONB content

I am having trouble trying to perform flask-restless api queries on data that is contained inside a JSONB object. I'm going to guess it's because the underlying query doesn't know how to cast the data field so it doesn't know how to generate the…
Artagel
  • 390
  • 1
  • 12
1
vote
0 answers

Flask Restless Preprocessors: GET_MANY doesn't works (auth REST API with Flask-Security)

Documentation is ambiguous, sometimes GET_MANY and other GET_COLLECTION are used. I need to make a preprocessor to authorize. GET_SINGLE does work (return 401: forbiden), but GET_MANY or GET_COLLECTION does not (return 200:…
1
vote
0 answers

How can I Reduce Apache Average Process Size?

I'm running a API to a database written in Python (Flask Restless) and served using apache2 and mod_wsgi as per the Flask Documentation. The app is hosting on AWS EC2 instances inside an Auto-scaling group. We're currently hosting on m3.medium…
1
vote
2 answers

How to query API set up with Flask-restless

I'm trying to learn how to serve up data in a Flask app and mysql database both served on pythonanywhere. I've added a route to /test with a function which is designed to connect to an existing mysql database table, and then serve it up as an API…
elksie5000
  • 7,084
  • 12
  • 57
  • 87