yarn build

This commit is contained in:
smilerz
2021-07-30 16:30:23 -05:00
parent 2da0f5c478
commit 1f21631c5a
11 changed files with 47 additions and 29 deletions

View File

@ -4,7 +4,6 @@ from rest_framework.schemas.utils import is_list_view
# TODO move to separate class to cleanup
class RecipeSchema(AutoSchema):
def get_path_parameters(self, path, method):
if not is_list_view(path, method, self.view):
return super(RecipeSchema, self).get_path_parameters(path, method)
@ -55,6 +54,11 @@ class RecipeSchema(AutoSchema):
"description": 'true or false. returns the results in randomized order.',
'schema': {'type': 'string', },
})
parameters.append({
"name": 'new', "in": "query", "required": False,
"description": 'true or false. returns new results first in search results',
'schema': {'type': 'string', },
})
return parameters