You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature introduces an endpoint designed to verify the existence of a record with a specified value. The endpoint will be capable of performing checks within a given category, organization, and entity to ensure the existence of a record.
This feature is essential for applications that require validation of records within specific contexts, enhancing data integrity and user experience by preventing duplicate entries or ensuring the presence of required records.
Functionality Details:
The endpoint is a GET method, it will receive query parameters that specify the studyId and value to be checked, as well as the categoryId and entityName in which the record should be searched. Example:
GET http://localhost:3030/validator/{categoryId}/{entityName}?studyId={studyId}&value{value}
Where:
- {categoryId} is the ID of the category the record belongs. Number type.
- {entityName} is a string, also known as Analysis Type in Song
- {studyId} is a string, also known as Organization in Lyric
- {value} is a string, value to check
Search should performed exclusively within the submitted_data table.
If the record is found, the endpoint will respond with a 200 OK status with empty body, confirming the existence of the record.
If the record does not exist, the endpoint will return a 400 Bad Request status, indicating that the specified value was not found. E.g.
{
"error": "INVALID_VALUE",
"message": "Any string message describing why the value is invalid"
}
Summary of request
This feature introduces an endpoint designed to verify the existence of a record with a specified value. The endpoint will be capable of performing checks within a given category, organization, and entity to ensure the existence of a record.
This feature is essential for applications that require validation of records within specific contexts, enhancing data integrity and user experience by preventing duplicate entries or ensuring the presence of required records.
Functionality Details:
studyId
andvalue
to be checked, as well as thecategoryId
andentityName
in which the record should be searched. Example:Where:
-
{categoryId}
is the ID of the category the record belongs. Number type.-
{entityName}
is a string, also known as Analysis Type in Song-
{studyId}
is a string, also known as Organization in Lyric-
{value}
is a string, value to checksubmitted_data
table.The text was updated successfully, but these errors were encountered: