I have tomcat running the .war file. I am able to go to
http://localhost:8080/referenceccdaservice/swagger-ui.html and see the page.
I expand the POST on top, enter 'CCDA_IG_Plus_Vocab for validationObjective and 'readme.txt for the referenceFileName as instructed, then I click 'choose file' and upload a .xml file of a ccda that has passed the B1 test previously on the ETT. When I click 'Try it out' I get back a 200 response code and can see all error counts as 0 in the response body. Great.
But when I use the curl command I get a 415 error.
The command listed in the swagger ui is:
I believe I need to change to this to work in my win10 terminal:
When I run that command I get back a 415 error, with the description being "The server refused this request because the request entity is in a format not supported by the requested resource for the requested method."
My question is, how do I include the .xml file along with the curl post?
I tried adding a -d flag followed by the @file name, as that's what it looks like is needed to include some data with the post. So I first cd'd to where the file is and ran:
But that still gave me a 415 error. What is the right way to include the file in the post?