-
Notifications
You must be signed in to change notification settings - Fork 3
Validation errors
JeffMedeiros edited this page Nov 29, 2019
·
1 revision
Pattern Error
{
"code": 400,
"message": "Parameter {resourcename_id} is not in valid format!",
"description": "A 24-byte hex ID similar to this: 507f191e810c19729de860ea is expected."
}
The ID parameter patterns currently used are:
- application_id
- child_id
- group_id
- educator_id
- family_id
- healthprofessional_id
- institution_id
- user_id
- bodyfat_id
- child_id
- environment_id
- institution_id
- physicalactivity_id
- sleep_id
- weight_id
Pattern Error
{
"code": 400,
"message": "Some ID provided does not have a valid format!",
"description": "A 24-byte hex ID similar to this: 507f191e810c19729de860ea is expected."
}
Pattern error
{
"code": 400,
"message": "Unable to process request body.",
"description": "Please verify that the JSON provided in the request body has a valid format and try again."
}
Pattern error
{
"code": 400,
"message": "Required fields were not provided...",
"description": "{comma separated fields} are required!"
}
Pattern error
{
"code": 400,
"message": "One or more request fields are invalid...",
"description": "{field name} must have at least one character!"
}
Pattern error
{
"code": 400,
"message": "One or more request fields are invalid...",
"description": "{field name} must be a string!"
}
Pattern error
{
"code": 400,
"message": "Datetime: {datetime}, is not in valid ISO 8601 format.",
"description": "Date must be in the format: yyyy-MM-dd'T'HH:mm:ssZ"
}
Pattern error
{
"code": 400,
"message": "One or more request fields are invalid...",
"description": "{field name} can't be negative!"
}
Pattern error
{
"code": 400,
"message": "One or more request fields are invalid...",
"description": "{field name} must be a valid number!"
}
Pattern error
{
"code": 400,
"message": "The institution provided does not have a registration.",
"description": "It is necessary that the institution be registered before trying again."
}
Pattern error
{
"code": 400,
"message": "It is necessary for children to be registered before proceeding.",
"description": "The following IDs were verified without registration: {UNREGISTERED_CHILD_IDS}"
}
Pattern error
{
"code": 400,
"message": "One or more request fields are invalid...",
"description": "children must be an array!"
}
Pattern error
{
"code": 400,
"message": "One or more request fields are invalid...",
"description": "Children field contains invalid IDs. It is expected that each item in the array is a 24-byte hex string like this: 507f191e810c19729de860ea"
}
Pattern error
{
"code": 400,
"message": "Required fields were not provided...",
"description": "Collection with children IDs (ID can not be empty) is required!"
}
Pattern error
{
"code": 400,
"message": "One or more request fields are invalid...",
"description": "The following IDs from children attribute are not in valid format: {INVALID_CHILD_IDS}"
}
Pattern error
{
"code": 400,
"message": "This parameter could not be updated.",
"description": "A specific route to update user password already exists.Access: PATCH /users/5db052a6fcfefe5c3de20498/password to update your password."
}
Pattern error
{
"code": 400,
"message": "There is no registered Child with ID: {child_id} on the platform!",
"description": "Please register the Child and try again..."
}
Pattern error
{
"code": 400,
"message": "There is no registered Institution with ID: {institution_id} on the platform!",
"description": "Please register the Institution and try again..."
}
OCARIoT API Gateway (Full documentation)
- POST institutions
- GET institutions
- GET institutions.inst_id
- PATCH institutions.inst_id
- DELETE institutions.inst_id
- POST children.physicalactivities
- GET children.physicalactivities
- GET children.physicalactivities.activity_id
- DELETE children.physicalactivities.activity_id
- POST children.weights
- GET children.weights
- GET children.weights.weight_id
- DELETE children.weights.weight_id
- POST children.bodyfats
- GET children.bodyfats
- GET children.bodyfats.bodyfat_id
- DELETE children.bodyfats.bodyfat_id
- POST educators.children.groups
- GET educators.children.groups
- GET educators.children.groups.group_id
- PATCH educators.children.groups.group_id
- DELETE educators.children.groups.group_id
- POST healthprofessionals
- GET healthprofessionals
- GET healthprofessionals.hprof_id
- PATCH healthprofessionals.hprof_id
- POST healthprofessionals.children.groups
- GET healthprofessionals.children.groups
- GET healthprofessionals.children.groups.group_id
- PATCH healthprofessionals.children.groups.group_id
- DELETE healthprofessionals.children.groups.group_id
- POST institutions.environments
- GET institutions.environments
- DELETE institutions.environments
- DELETE institutions.environments.environment_id
- Invalid ID
- Invalid JSON format
- Missing fields
- Empty string
- Invalid string
- Invalid date
- Negative number
- Invalid number
- Unregistered institution
- Unregistered children
- Invalid children attribute type
- Invalid children items
- Empty ID(s) in children attribute
- ID(s) with invalid format in children
- Attempting to update password on wrong route
- Child does not exist
- Institution does not exist