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
Modify the existing document management system's API endpoint to support additional functionality and data fields in line with new project specifications. These changes aim to enhance the system's capability in handling file operations, including uploading, listing, and deleting documents.
Scope
API Endpoint Modifications:
Update the existing API to accept POST, GET, and DELETE requests.
Ensure compatibility with the newly specified data fields.
Data Fields to be Supported:
GUID (Globally Unique Identifier)
Filename
File Content
Date of Upload
Size
Page Number
File Type
Uploaded By
Title
Source URL
Analyzed (Y/N)
Approved (Y/N)
Functional Requirements
POST (File Upload):
Accept a JSON payload containing filename, file_content (Base64 encoded), size, page_number, file_type, uploaded_by, title, and source_url.
Automatically generate and assign a GUID and Date of Upload upon file submission.
Set the Analyzed and Approved fields to 'N' by default.
Objective
Modify the existing document management system's API endpoint to support additional functionality and data fields in line with new project specifications. These changes aim to enhance the system's capability in handling file operations, including uploading, listing, and deleting documents.
Scope
API Endpoint Modifications:
Update the existing API to accept POST, GET, and DELETE requests.
Ensure compatibility with the newly specified data fields.
Data Fields to be Supported:
Functional Requirements
POST (File Upload):
Accept a JSON payload containing filename, file_content (Base64 encoded), size, page_number, file_type, uploaded_by, title, and source_url.
Automatically generate and assign a GUID and Date of Upload upon file submission.
Set the Analyzed and Approved fields to 'N' by default.
JSON payload for POST endpoint:
{
"filename": "example.pdf",
"file_content": "",
"size": 102400, // Size in bytes
"page_number": 15,
"file_type": "pdf",
"uploaded_by": "username",
"title": "Example Document Title",
"source_url": "http://example.com/source-of-the-document"
}
GET (List Files):
Retrieve a list of files along with their respective information, as outlined in the data fields.
DELETE (Remove File):
Allow the removal of a file from the system using its GUID.
Technical Specifications
This is what is already created. This needs to be modified to the above requirements.
The text was updated successfully, but these errors were encountered: