Sha256: b08cff93f7cbb8f43d314ef086c1c91f25a8ace3e5f82103b734b8b2137aab48

Contents?: true

Size: 862 Bytes

Versions: 7

Compression:

Stored size: 862 Bytes

Contents

<%

api_title = "Negative Case - 4 - should respond with proper errors if the device is blocked"

api_input = <<-eos
{
  "otp": "11111",
  "dialing_prefix": "+91",
  "mobile_number": "<REGISTERED MOBILE NUMBER>",
  "uuid": "<BLOCKED DEVICE UUID>"
}
eos

api_output = <<-eos
{
  "success": false,
  "errors": {
      "heading": "This device is blocked",
      "message": "You must have done some mal-practices",
      "details": {}
  }
}
eos

%>

<%= render partial: "kuppayam/api/docs/example", locals: {
                                        negative_case: true,
                                        example_id: "neg_case_4",
                                        api_title: api_title,
                                        api_input: api_input,
                                        api_output: api_output 
                                      } %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
usman-0.3.0 app/views/usman/api/v1/docs/verify_otp/_neg_case_4.html.erb
usman-0.2.11 app/views/usman/api/v1/docs/verify_otp/_neg_case_4.html.erb
usman-0.2.10 app/views/usman/api/v1/docs/verify_otp/_neg_case_4.html.erb
usman-0.2.9 app/views/usman/api/v1/docs/verify_otp/_neg_case_4.html.erb
usman-0.2.8 app/views/usman/api/v1/docs/verify_otp/_neg_case_4.html.erb
usman-0.2.7 app/views/usman/api/v1/docs/verify_otp/_neg_case_4.html.erb
usman-0.2.6 app/views/usman/api/v1/docs/verify_otp/_neg_case_4.html.erb