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