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