Replace read_only
parameter with a list of HTTP methods
#121
Labels
enhancement
New feature or request
read_only
parameter with a list of HTTP methods
#121
PiccoloCRUD
has an option calledread_only
.I think it's worth phasing this out in favour of an argument called
methods
.It could be something like:
If
read_only
is provided in kwargs, then we can just map that tomethods=[HTTP.get]
and provide a deprecation warning.It means you have more fine grained control over which methods to expose:
The text was updated successfully, but these errors were encountered: