[SRE-26521] Add upload/download routes to script and datafile services#235
Merged
Zakaria-Kofiro merged 1 commit intomasterfrom Mar 24, 2023
Merged
[SRE-26521] Add upload/download routes to script and datafile services#235Zakaria-Kofiro merged 1 commit intomasterfrom
Zakaria-Kofiro merged 1 commit intomasterfrom
Conversation
rest-mvc/src/main/java/com/intuit/tank/rest/mvc/TankAPIApplication.java
Outdated
Show resolved
Hide resolved
shawn-h-park
approved these changes
Mar 24, 2023
shawn-h-park
approved these changes
Mar 24, 2023
fix: supports both normal and gzip file uploads fix: updating get specific script to script JSON description, download handles content fix: updated max file size and added exception handling for file exceptions fix: set debug to false fix: group all exception handlers fix: updating prefix fix: unneeded file fix: reverting file change Revert "fix: reverting file change" This reverts commit 0ba90f6. fix: revert file fix: reverting file as well fix: detailed error msg for incorrect request
3601489 to
99d2e8c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add upload/download routes to script and datafile services
This change adds the following routes for uploading and downloading scripts and datafiles:
Scripts:
GET /v2/scripts/download/{scriptId} -> Downloads the Tank XML file for a script
GET /v2/scripts/harness/download/{scriptId} -> Downloads the Tank Harness file for a script
GET /v2/scripts/external/download/{externalScriptId} -> Downloads the Tank XML file for an external script
POST /v2/scripts/upload -> Uploads a script XML file output generated by the Tank Proxy Package
Datafiles:
GET /v2/datafiles/download/{datafileId} -> Downloads a datafile
POST /v2/scripts/upload -> Uploads a datafile to Tank
Please make sure these check boxes are checked before submitting
mvn clean test -P default** PR review process **