From 6c47cf4fe565c959e769e77d1c3b1124acf7e4b7 Mon Sep 17 00:00:00 2001 From: Juan Martin Porcel Date: Fri, 20 Jul 2018 13:14:45 +0100 Subject: [PATCH] updating sortable trait --- others/banking-api/traits/sortable.raml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/others/banking-api/traits/sortable.raml b/others/banking-api/traits/sortable.raml index abed069..9e221fc 100755 --- a/others/banking-api/traits/sortable.raml +++ b/others/banking-api/traits/sortable.raml @@ -1,6 +1,13 @@ #%RAML 1.0 Trait -usage: Apply this to a method that support sorting. -queryParameters: - sort?: - type: string - example: name,-age \ No newline at end of file + usage: Apply this to a method that support sorting. + queryParameters: + sortBy: + description: | + Order by field: <> + type: string + required: false + order: + description: Order + enum: [desc, asc] + default: desc + required: false