Sha256: afeca4f875908f5585a2d21a99149730129f2fd3d5a9c61d5e4d3e3457331e4a

Contents?: true

Size: 951 Bytes

Versions: 11

Compression:

Stored size: 951 Bytes

Contents

<%

api_title = "Negative Case - 3 - should set proper errors if the inputs are not correct"

api_input = <<-eos
{}
eos

api_output = <<-eos
{
  "success": false,
  "errors": {
      "heading": "Creating Profile Failed",
      "message": "Check if all mandatory details are passed. Refer the error details for technical information",
      "details": {
          "name": ["can't be blank", "is too short (minimum is 3 characters)"]
          "email": ["can't be blank", "is too short (minimum is 3 characters)"]
      }
  }
}
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

11 entries across 6 versions & 1 rubygems

Version Path
usman-0.3.0 app/views/usman/api/v1/docs/create_profile/_neg_case_3.html.erb
usman-0.2.11 app/views/usman/api/v1/docs/update_profile/_neg_case_3.html.erb
usman-0.2.11 app/views/usman/api/v1/docs/create_profile/_neg_case_3.html.erb
usman-0.2.10 app/views/usman/api/v1/docs/create_profile/_neg_case_3.html.erb
usman-0.2.10 app/views/usman/api/v1/docs/update_profile/_neg_case_3.html.erb
usman-0.2.9 app/views/usman/api/v1/docs/create_profile/_neg_case_3.html.erb
usman-0.2.9 app/views/usman/api/v1/docs/update_profile/_neg_case_3.html.erb
usman-0.2.8 app/views/usman/api/v1/docs/create_profile/_neg_case_3.html.erb
usman-0.2.8 app/views/usman/api/v1/docs/update_profile/_neg_case_3.html.erb
usman-0.2.7 app/views/usman/api/v1/docs/update_profile/_neg_case_3.html.erb
usman-0.2.7 app/views/usman/api/v1/docs/create_profile/_neg_case_3.html.erb