Sha256: 26a67faccdaee386ef0ef4ea1e3031ef1f0bfcf75942a93e877a5c3bb40ac13b

Contents?: true

Size: 1007 Bytes

Versions: 7

Compression:

Stored size: 1007 Bytes

Contents

<%

api_title = "Negative Case - 3 - should respond with proper errors if T&C is not accepted"

api_input = <<-eos
{
  "terms_and_conditions": 0,
  "uuid": "<VERIFIED UUID>",
  "mobile_number": "<VERIFIED MOBILE NUMBER>",
  "dialing_prefix": "+91"
}
eos

api_output = <<-eos
{
  "success": false,
  "errors": {
      "heading": "You have not accepted the Terms & Conditions. Registration is complete only if you accept the T&C",
      "message": "Accept the T&C to finish the Registration. Pass true",
      "details": {
        "terms_and_conditions": "must be true"
      }
  }
}
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/accept_tac/_neg_case_3.html.erb
usman-0.2.11 app/views/usman/api/v1/docs/accept_tac/_neg_case_3.html.erb
usman-0.2.10 app/views/usman/api/v1/docs/accept_tac/_neg_case_3.html.erb
usman-0.2.9 app/views/usman/api/v1/docs/accept_tac/_neg_case_3.html.erb
usman-0.2.8 app/views/usman/api/v1/docs/accept_tac/_neg_case_3.html.erb
usman-0.2.7 app/views/usman/api/v1/docs/accept_tac/_neg_case_3.html.erb
usman-0.2.6 app/views/usman/api/v1/docs/accept_tac/_neg_case_3.html.erb