Sha256: 786634a5cce717ac86464de4f15912646ddfc808c057d95edee099031c5f9a86

Contents?: true

Size: 939 Bytes

Versions: 7

Compression:

Stored size: 939 Bytes

Contents

<%

api_title = "Negative Case - 4 - should set proper errors for device is blocked"

api_input = <<-eos
{
  "uuid": "<BLOCKED DEVICE UUID>",
  "device_token": "<BLOCKED DEVICE 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": false,
  "errors": {
      "heading": "This device is blocked",
      "message": "You must have done some mal-practices",
      "details": {}
  }
}
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/register/_neg_case_4.html.erb
usman-0.2.11 app/views/usman/api/v1/docs/register/_neg_case_4.html.erb
usman-0.2.10 app/views/usman/api/v1/docs/register/_neg_case_4.html.erb
usman-0.2.9 app/views/usman/api/v1/docs/register/_neg_case_4.html.erb
usman-0.2.8 app/views/usman/api/v1/docs/register/_neg_case_4.html.erb
usman-0.2.7 app/views/usman/api/v1/docs/register/_neg_case_4.html.erb
usman-0.2.6 app/views/usman/api/v1/docs/register/_neg_case_4.html.erb