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
{{ message }}
Repository navigation
SPIKE - API Discovery for Cont. In Integration #24129
Thanks @flutistar, possible existing DRS document types to use:
Type Class Description
CNTA CORP Continuation in Authorization
CNTI CORP Continuation In
AFDV OTHER Affidavit Document
CRTO OTHER Court Orders
COSD CORP CORPS Supporting Documentation
CORP_MISC CORP Corporations miscellaneous documents
Or some new ones can be created: note that the document name is an optional DRS API property that could be used to distinguish documents.
Here's my summary:
Virus scanning:
Possibly review requirement/solution with Thor. Consider implementing as a conditional doc api gateway flow step. Conditional on either the document type (public submissions) or as a flag.
One option is documented here: https://cloud.google.com/architecture/automate-malware-scanning-for-documents-uploaded-to-cloud-storage
Another option is using Google drive: upload the files to Google Drive which will provide virus scanning, retrieve the files via the Drive API then delete them from the Drive.
If staff always review the public uploaded documents then the staff desktop scanning could be used. In this option staff should have the ability to delete documents (new API functionality).
Document Types:
New ones may be required, see my previous comment.
Real-time upload or asynchronous?
Continuation in filing volume is low, document file sizes are probably low, number of files per registration is low, so real-time is my recommendation.
The MinIO SDK is replaced by the doc api: there is no direct access to the DRS GCP cloud storage buckets
Doc API endpoint usage:
First file upload, submit a POST /doc/api/v1/documents/{documentClass}/{documentType} with no request consumerDocumentId. The generated doc api consumerDocumentId returned in the response is the unique doc api identifier for the CONTI filing.
For any subsequent document uploads include the previous response consumerDocumentId in the request.
Use GET /doc/api/v1/searches/{documentClass}?consumerDocumentId= to fetch registration document information including download URL's.
Use PATCH /doc/api/v1/documents/{docServiceId} to update individual document meta data.
Use PUT /doc/api/v1/documents/{docServiceId} to update/replace a document.
To permanently delete an individual document from storage:
DELETE /doc/api/v1/documents/{docServiceId}
To logically delete/remove a document record:
PATCH /doc/api/v1/documents/{docServiceId} with request payload
{
"removed": true
}
The API endpoints are restricted to registries staff. Set up a service account with the staff role for these requests. The service account will be linked to the gateway API key. We could use the scanner app key.
Activity
arlentees commentedon Nov 14, 2024
Hey team! Please add your planning poker estimate with Zenhub @cameron-eyds @chdivyareddy @doug-lovett @flutistar
doug-lovett commentedon Nov 18, 2024
Can we also identify/confirm the DRS document types used by continuation in filiings?
doug-lovett commentedon Nov 19, 2024
Thanks @flutistar, possible existing DRS document types to use:
Type Class Description
CNTA CORP Continuation in Authorization
CNTI CORP Continuation In
AFDV OTHER Affidavit Document
CRTO OTHER Court Orders
COSD CORP CORPS Supporting Documentation
CORP_MISC CORP Corporations miscellaneous documents
Or some new ones can be created: note that the document name is an optional DRS API property that could be used to distinguish documents.
doug-lovett commentedon Nov 19, 2024
Here's my summary:
Virus scanning:
Possibly review requirement/solution with Thor. Consider implementing as a conditional doc api gateway flow step. Conditional on either the document type (public submissions) or as a flag.
One option is documented here:
https://cloud.google.com/architecture/automate-malware-scanning-for-documents-uploaded-to-cloud-storage
Another option is using Google drive: upload the files to Google Drive which will provide virus scanning, retrieve the files via the Drive API then delete them from the Drive.
If staff always review the public uploaded documents then the staff desktop scanning could be used. In this option staff should have the ability to delete documents (new API functionality).
Document Types:
New ones may be required, see my previous comment.
Real-time upload or asynchronous?
Continuation in filing volume is low, document file sizes are probably low, number of files per registration is low, so real-time is my recommendation.
The MinIO SDK is replaced by the doc api: there is no direct access to the DRS GCP cloud storage buckets
Doc API endpoint usage:
First file upload, submit a POST /doc/api/v1/documents/{documentClass}/{documentType} with no request consumerDocumentId. The generated doc api consumerDocumentId returned in the response is the unique doc api identifier for the CONTI filing.
For any subsequent document uploads include the previous response consumerDocumentId in the request.
Use GET /doc/api/v1/searches/{documentClass}?consumerDocumentId= to fetch registration document information including download URL's.
Use PATCH /doc/api/v1/documents/{docServiceId} to update individual document meta data.
Use PUT /doc/api/v1/documents/{docServiceId} to update/replace a document.
To permanently delete an individual document from storage:
DELETE /doc/api/v1/documents/{docServiceId}
To logically delete/remove a document record:
PATCH /doc/api/v1/documents/{docServiceId} with request payload
{
"removed": true
}
The API endpoints are restricted to registries staff. Set up a service account with the staff role for these requests. The service account will be linked to the gateway API key. We could use the scanner app key.