restless icon indicating copy to clipboard operation
restless copied to clipboard

A lightweight REST miniframework for Python.

Results 36 restless issues
Sort by recently updated
recently updated
newest added

`add_url_rules` takes the primary key name and its type and passes on to Flask add `as_view` in FlaskResource, which is required for creating custom end points dynamically

`Resource.as_view` was added in 6c3e83cc12e45c8706ca064053e69d5812bb12f6, in 2014, but the `FlaskResource` was not updated to use it.

Moved the list preparation out of the `Resource.serialize_list` method, and into `Resource.prepare_list`, which allows for customised list preparation options. This is useful is if you're using `marshmallow`, where simply calling...

I'd like to suggest adding `Request.request_parameters` and `Resource.params`, which follows the idea of `Resource.data`. This would allow you to easily create endpoints that have e.g. optional filtering. Example usage (untested):...

When I read the source code to learn this pretty project, I was a little confused about this comment, because it does not describe what the code did. So I...

Small contribution to cookbook examples :)

Response no longer treats `application/json` as a special case that may also be treated as text. https://docs.pylonsproject.org/projects/webob/en/stable/whatsnew-1.7.html

If an exception is raised during the processing of a handler method, it's always handled gracefully, returning a response object that contains the error message and (when is_debug == True)...

Not sure if you plan to add support for api version and throttling. However, I'd be really interested in your opinion on the subject and your recommendation for restless-based projects.

Docs

`http_methods` is defined as [a class-level attribute on the Resource class](https://github.com/toastdriven/restless/blob/0accfd0d1ecec4726d0de350e89380ce442a82db/restless/resources.py#L59). But then [the documentation for Custom Endpoints](http://restless.readthedocs.io/en/latest/extending.html#custom-endpoints) recommends overriding `http_methods` in your resource's `__init__` method. The trouble with this...