I have been trying to test the REST API and what it worked before in O.S 1.1 now it does not on version 2
Here’s the HTTP request
URL: http://128.199.204.227/openspecimen/rest/ng/participants
METHOD: POST
[HEADERS]
Authorization: Basic YWRtaW5AYWRtaW4uY29tOkxvZ2luIUAz
[PARAMETERS]
[CONTENT]
{“ethnicity” : “Unknown”, “firstName” : “ASDAAA”, “gender” : “Male Gender”, “lastName” : “ASDDD”, “pmiCollection” : [ { “mrn” : “324r6”, “siteName” : “LAB1” } ], “race” : [ “Asian” ], “ssn” : “123-45-6789”}
-------------I ADDED the LAB 1 SITE into your public OS DB
the response is
HTTP Sender error
ERROR MESSAGE: JBoss Web/2.1.3.GA - Error report
HTTP Status 400 -
type Status report
message
description The request sent by the client was syntactically incorrect ().
JBoss Web/2.1.3.GA
---- also I did the local installation on windows server and it seems the installation was a partial installation because the settings page did not even open.
Here’s the guide I used -> the GUI has some differences from the one you have.
catissueplus.atlassian.net/wiki/display/CAT/Steps+to+deploy+OpenSpeicmen+2.0