Validating invalid query parameters using raml -
i wanted know, there way handle invalid query parameters not mentioned in raml file. 1 way using required problem fields in use case can optional. there better way check query invalid , return 400 bad request response user? appreciated.
so have this: /products: securedby: [oauth_2_0] displayname: products type: readonlycollection: examplecollection: !include test.json get: queryparameters: catalog: displayname: catalog type: string required: false the problem suppose when user passes invalid query parameter, should able return user invalid , return 400.how can that.
thanks joel
Comments
Post a Comment