Closed varadeth closed 9 months ago
Understanding regarding task : I have t create an API for update the template/document/file. It means if name of document is ABC and now i want to change it as XYZ, so when I will hit the API the name should be update in db as a XYZ
implementation Steps as per my understanding: overview the existing API's code Use @putmapping write a code for FileStorageController class write a code for FileStorageService class(updateFiles() code shoul write there)
I am trying to update the contents of documents but in minio new file is going to create instead of replace the previous file
In putmapping service with the document I am trying to replace the updated file and delete the previous(existing file) but in Postman its showing error. error - Unsupported Media Type and if I tried to do it with documentId then in postman its showing error - Internal server error So now will try to do it using Minio methods like remove_object, stat_object, put_object
I have tried to do the task with Minio client methods but its showing error in Postman error - internal server error
Task completed, file is updating on Minio server
@holashchand please review and close.
Currently, Registry allows to upload template file and keep it in minio. Registry does not have updating the templates. We want to have that feature which supports updating the existing templates