Sha256: 27c3c28e0a3129a14c1a10829f7d56a8792b701d13098b991e66ecf5e861b771

Contents?: true

Size: 1019 Bytes

Versions: 4

Compression:

Stored size: 1019 Bytes

Contents

<%

api_title = "Positive Case - 2 - should verify the otp if the device is verified, tac is accpted and return the api token"

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

api_output = <<-eos
{
  "success": true,
  "alert": {
      "heading": "OTP was verified succesfully",
      "message": "You may need to accept the terms and conditions to get the API token if you have not yet finised the registration"
  },
  "data": {
      "api_token": "cfc0eb18c8f3b5922e702f1e10437fa1"
  }
}
eos

%>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
usman-0.2.9 app/views/usman/api/v1/docs/verify_otp/_pos_case_2.html.erb
usman-0.2.8 app/views/usman/api/v1/docs/verify_otp/_pos_case_2.html.erb
usman-0.2.7 app/views/usman/api/v1/docs/verify_otp/_pos_case_2.html.erb
usman-0.2.6 app/views/usman/api/v1/docs/verify_otp/_pos_case_2.html.erb