Sha256: b8f395275a367dfab20fc2349406af8c5ace9f240758dd930e34b893d1eeb1c2
Contents?: true
Size: 1.72 KB
Versions: 19
Compression:
Stored size: 1.72 KB
Contents
<% api_title = "Positive Case - 2 - should register and reuse an existing registration information" api_input = <<-eos Example: POST #{request.base_url}/api/v1/register { "country_id": "1", "city_id": "2", "dialing_prefix": "+91", "mobile_number": "<ALREADY REGISTERED MOBILE NUMBER>", "uuid": "<NEW UUID>", "device_token": "<NEW DEVICE TOKEN>", "device_name": "Apple iPhone", "device_type": "iPhone 7 Plus", "operating_system": "iOS", "software_version": "iOS 11.2.2" } eos api_output = <<-eos { "success": true, "alert": { "heading": "An OTP has been sent to you", "message": "Check your mobile for new message from us." }, "data": { "registration": { "id": 5, "user_id": null, "country_id": 1, "city_id": null, "dialing_prefix": "+91", "mobile_number": "501370321", "status": "verified" }, "device": { "id": 6, "user_id": null, "registration_id": 5, "uuid": "jh01u2g01h301h21h232", "device_token": "0182y3b28107b31", "device_name": "Apple iPhone", "device_type": "iPhone 7 Plus", "operating_system": "iOS", "software_version": "iOS 11.2.2", "status": "pending", "otp_verified_at": null } }, "errors": { "heading": null, "message": null, "details": {} } } 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
19 entries across 19 versions & 1 rubygems