Sha256: 26e5bcd4feb99f38137eecd6c549edcfe2da52fa0cebb8b48f63b27f9df55a2f
Contents?: true
Size: 1.05 KB
Versions: 49
Compression:
Stored size: 1.05 KB
Contents
<% api_title = "Negative Case - 2 - should set proper errors when device information is missing" api_input = <<-eos Example: POST #{request.base_url}/api/v1/register { "country_id": "1", "dialing_prefix": "+92", "mobile_number": "501370323" } eos api_output = <<-eos { "success": false, "errors": { "heading": "Registring new mobile number FAILED", "message": "Check if all mandatory details are passed. Refer the error details for technical information", "details": { "uuid": [ "can't be blank" ], "device_token": [ "can't be blank" ] } } } eos %> <%= render partial: "kuppayam/api/docs/example", locals: { negative_case: true, example_id: "neg_case_2", api_title: api_title, api_input: api_input, api_output: api_output } %>
Version data entries
49 entries across 49 versions & 1 rubygems