Sha256: e81633a1dd027f3c9e46f2c4cf3330f2cdba294313040c62b39920f60da677c2
Contents?: true
Size: 1.04 KB
Versions: 23
Compression:
Stored size: 1.04 KB
Contents
<% api_title = "Negative Case - 3 - should respond with proper errors if OTP is invalid" api_input = <<-eos Example: POST #{request.base_url}/api/v1/change_number { "otp": "<INVALID OTP>", "uuid": "asd907asdba78sbda", "old_dialing_prefix": "<OLD DIALING PREFIX>", "old_mobile_number": "<OLD MOBILE NUMBER>", "new_dialing_prefix": "<NEW DIALING PREFIX>", "new_mobile_number": "<NEW MOBILE NUMBER>" } eos api_output = <<-eos { "success": false, "errors": { "heading": "The device is not registered", "message": "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
23 entries across 23 versions & 1 rubygems