flask-rest-jsonapi
flask-rest-jsonapi copied to clipboard
Flask extension to build REST APIs around JSONAPI 1.0 specification.
By default we assign each Resource class with a view/endpoint. However if the same resource is used for multiple routes, the endpoint will be overwritten. e.g. previously this test would...
Let's take a look at this code https://github.com/miLibris/flask-rest-jsonapi/blob/b44bc08b11213d49fadae873650d3555889052ec/flask_rest_jsonapi/querystring.py#L193-L201 https://github.com/miLibris/flask-rest-jsonapi/blob/b44bc08b11213d49fadae873650d3555889052ec/flask_rest_jsonapi/querystring.py#L193 This expects `self.querystring['include']` to be a list, whereas we know that it is a string by looking at last line https://github.com/miLibris/flask-rest-jsonapi/blob/b44bc08b11213d49fadae873650d3555889052ec/flask_rest_jsonapi/querystring.py#L201...
* Allow an API to define a dictionary of converter functions for different content types, that are run before and after the JSON API schema sees the data. For example:...
I realise this has been discussed briefly at #13. However, we don't yet have a good solution. The problem is this: I want my API to input and output data...
I noticied when in a model you configured a field as `lazy='dynamic'`, the ResourceRelationship faild because the relational object is a query, and not a InstrumentedList. Possible Fix: data_layers/alchemy.py:246 Add:...
Is it possible to change the fields that can be returned/updated based on the permissions of the logged in user?
When I make a POST request to an endpoint with an empty body, the jsonapi_exception_formatter decorator returns an exception with status code 500 instead of 400. This only happens when...
Hello, According to the documentation every `POST` and `PATCH` methods should contain headers: ``` Content-Type: application/vnd.api+json Accept: application/vnd.api+json ``` otherwise the exception should be risen. The point of the issue...
I was looking at the sample [filtering docs](https://flask-rest-jsonapi.readthedocs.io/en/latest/quickstart.html). If I had my PersonSchema using fields.Nested instead of fields.Relationships, like this: ``` class PersonSchema(Schema): ... computers = fields.Nested(ComputerSchema, exclude=('person',)) ... ```...
For example, we could have query strings looking like this: ``` ?filter[foobar_id]=[1,2,3] ``` I'd implemented it in my app, but was thinking of maybe adding it to flask-rest-jsonapi? It looks...