Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Panel
titleColorwhite
titleBGColorred
titleImportant note on security

The examples below are for educationall educational purposes:

Please do read https://ec.haxx.se/usingcurl-netrc.html on the use of passwords and usernames if you plan to automate these procedures.


Code Block
# example use:
curl --netrc-file mycredentialsfile https://xyz.com

# the mycredentialsfile contains :
machine <xyz.com> login <johndoe@xyz.com> password <uf9873o^9ufwa>

...

To test the API you may use a tool like Restlet, a plugin for Chrome browsers to test API calls before you deploy. The server responds with a HTTP code 200 in when succesfullsuccesful, but may the response body may contain detailed error messages.

In case the upload succeeded, an XML response with meta information of the upload is generated. You may use this for own logging purposes. For more info you can read the full API specification.


URL
SERVER URLhttps://staging-dataupload.wmda.info
URI

/api/v2/io/ION0999/

Please refer to the file naming convention.

This  is stated as : For XML format:The files are marked with ION numbers ( ION-1234-D or ION-1234-C)

The ION number is an unique number of an organisation sending the file.

The D give the information that it is a donor file and the C give the information that it is a cord blood file

METHODPUT
HEADERonly Authorization is required, the other ones are optional
Authorization

basic

Content-Typeapplication/x-www-form-urlencoded
X-Rename-If-Existstrue

...