Closed andresod closed 5 years ago
Yes, I've just recently added that feature: https://github.com/Dynatrace/superdump/pull/183
It should be possible like this:
curl -X POST "https://superdump.local/api/Dumps/Upload" -H "accept: */*" -H "Content-Type: multipart/form-data" -F "file=@notepad.dmp"
thank you @discostu105 , that worked. I had some trouble building the project though. The solution wouldn't build unless I comment out the bower install in src/SuperDumpService/SuperDumpService.csproj: `
`
Oh that's interesting. Do you have bower installed?
at first not (it wasn't mentioned as a prereq), but after I installed it, build was still failing. I figured out the issue... there is also a dependency on git it seems and when I build from cmd prompt, git isn't in my path. When building from git bash, the build completes fine. This gave it away:
(snip) PrepublishScript: bower install bower bootstrap#4.0.0 ENOGIT git is not installed or not in the PATH C:\dev\superdump\src\SuperDumpService\SuperDumpService.csproj(57,5): error MSB3073: The command "bower install" exited with code 1. Done Building Project "C:\dev\superdump\src\SuperDumpService\SuperDumpService.csproj" (default targets) -- FAILED. Done Building Project "C:\dev\superdump\building\msbuild.targets" (Windows target(s)) -- FAILED. Build FAILED. (snip)
using the curl example from the swagger docs I am able to upload a dmp file to the server from the cmd line, but only if the dmp file is placed on another webserver first. Is there a way to specify a local file? If so, what should the -d '{"url":"???" ... }' be set to in this case?