Sha256: 0cebaef3038be3851fb0b194183b493d857397d97bde9a29ff2051a27417d06d

Contents?: true

Size: 895 Bytes

Versions: 7

Compression:

Stored size: 895 Bytes

Contents

<%

api_title = "Negative Case - 3 - should respond with proper errors if uuid is not registered"

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

api_output = <<-eos
{
  "success": false,
  "errors": {
      "heading": "The device is not registered",
      "message": "Resending OTP Failed. Check if the UUID entered is valid",
      "details": {
        "uuid": "is invalid"
      }
  }
}
eos

%>

<%= render partial: "kuppayam/api/docs/example", locals: {
                                        negative_case: true,
                                        example_id: "neg_case_3",
                                        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/resend_otp/_neg_case_3.html.erb
usman-0.2.11 app/views/usman/api/v1/docs/resend_otp/_neg_case_3.html.erb
usman-0.2.10 app/views/usman/api/v1/docs/resend_otp/_neg_case_3.html.erb
usman-0.2.9 app/views/usman/api/v1/docs/resend_otp/_neg_case_3.html.erb
usman-0.2.8 app/views/usman/api/v1/docs/resend_otp/_neg_case_3.html.erb
usman-0.2.7 app/views/usman/api/v1/docs/resend_otp/_neg_case_3.html.erb
usman-0.2.6 app/views/usman/api/v1/docs/resend_otp/_neg_case_3.html.erb