save and load of custom filter WIP

This commit is contained in:
vabene1111
2025-03-31 20:24:32 +02:00
parent c03e82f094
commit 74b940d4eb
2 changed files with 181 additions and 138 deletions

View File

@@ -1125,8 +1125,8 @@ class RecipePagination(PageNumberPagination):
OpenApiParameter(name='createdby', description=_('Filter recipes for ones created by the given user ID'), type=int),
OpenApiParameter(name='internal', description=_('If only internal recipes should be returned. [''true''/''<b>false</b>'']'), type=bool),
OpenApiParameter(name='random', description=_('Returns the results in randomized order. [''true''/''<b>false</b>'']')),
OpenApiParameter(name='new', description=_('Returns new results first in search results. [''true''/''<b>false</b>'']')),
OpenApiParameter(name='random', description=_('Returns the results in randomized order. [''true''/''<b>false</b>'']'), type=bool),
OpenApiParameter(name='new', description=_('Returns new results first in search results. [''true''/''<b>false</b>'']'), type=bool),
OpenApiParameter(name='num_recent', description=_('Returns the given number of recently viewed recipes before search results (if given)'), type=int),
OpenApiParameter(name='makenow', description=_('Filter recipes that can be made with OnHand food. [''true''/''<b>false</b>'']'), type=bool),
]))