Browse Source

Add some 422 examples

pull/53/head
baarkerlounger 4 years ago
parent
commit
19e058bf42
  1. 47
      docs/api/DLUHC-CORE-Data.v1.json

47
docs/api/DLUHC-CORE-Data.v1.json

@ -24,7 +24,8 @@
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/Case-Log" "$ref": "#/components/schemas/Case-Log"
} },
"examples": {}
} }
} }
}, },
@ -81,6 +82,26 @@
"examples": {} "examples": {}
} }
} }
},
"422": {
"description": "Unprocessable Entity ",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
},
"examples": {
"Invalid Age": {
"value": {
"errors": [
"Tenant age must be between 0 and 120"
]
}
}
}
}
}
} }
}, },
"description": "Update the information of an existing case log", "description": "Update the information of an existing case log",
@ -147,11 +168,25 @@
} }
} }
}, },
"400": { "422": {
"description": "Missing Required Information" "description": "Unprocessable Entity ",
}, "content": {
"409": { "application/json": {
"description": "Email Already Taken" "schema": {
"type": "object",
"properties": {}
},
"examples": {
"Invalid Age": {
"value": {
"errors": [
"Tenant age must be between 0 and 120"
]
}
}
}
}
}
} }
}, },
"requestBody": { "requestBody": {

Loading…
Cancel
Save