Required string[] parameter is not present?

121 views
Skip to first unread message

adam....@procentive.com

unread,
Jul 18, 2017, 11:03:24 AM7/18/17
to Edge Test Tool (ETT)
I am trying to get some of these curl request to work.  I am entering this into the terminal:


But I get back in the response:

type Status report

message Required String[] parameter 'codeSystems' is not present

description The request sent by the client was syntactically incorrect.



Not sure what I'm doing wrong.  The Swagger-ui tool incorrectly puts a space character in after the "Accept:" in the header, which I removed, and it put quotes around the url which I had to remove also.  But it seems like everything else has been corrected.


Does anyone know what I have to change to get this request/response to work correctly?



Nagesh Bashyam

unread,
Jul 18, 2017, 2:24:46 PM7/18/17
to adam....@procentive.com, Edge Test Tool (ETT)

Adam

 

Use the following:

 

curl -X GET -HContent-type:application/json “https://ttpds.sitenv.org:8443/referenceccdaservice/getbycodeincodesystem?code=34133-9&codeSystems=LOINC

 

Notice the quotes around the https stuff. That is why the command was failing, if you add the quotes to your command, you will get a [] empty response because

 

In this case the CodeSystem name is expected not the OID.

 

Thanks

Dragon

--
You received this message because you are subscribed to the Google Groups "Edge Test Tool (ETT)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to edge-test-too...@googlegroups.com.
To post to this group, send email to edge-te...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/edge-test-tool/27b0bb1e-a2f7-43b1-b2bc-2298a2f614f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

adam....@procentive.com

unread,
Jul 18, 2017, 3:23:13 PM7/18/17
to Edge Test Tool (ETT), adam....@procentive.com
Ah, ok, thanks.  That works.

Seems a little strange that the swagger-ui would show single quotes in the Curl example when double quotes are required.  (and that extra space in the header)  I'm on Win10 .. maybe there's a difference between Linux or something.
Reply all
Reply to author
Forward
0 new messages