Sha256: 0cf8ae9a7758d10bfa34539a185510bb2228860c72776f4c481e54aa762d0adc

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 KB

Contents

<%

api_title = "Negative Case - 2 - should set proper errors when device information is missing"

api_input = <<-eos
{
  "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

9 entries across 8 versions & 1 rubygems

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