Skip to content

REST API Code Examples

pm9-sanger edited this page Jan 3, 2017 · 20 revisions

You can interact with REST services using any programming language, but here’s some example code written in Ruby and Perl and an example where the ‘curl’ command is used to interact with the API:

Running Scripts Against the Test Server

We have a test instance of iMits set up at https://www.i-dcc.org/staging/imits that you are free to run any test scripts against. Your user account will be the same as the one you use on the production site, but your password will have been reset to ‘password’. The test database is refreshed from production on a weekly basis (every Sunday) so should always have a fairly recent snapshot of the data in it to work with.