Skip to content

Developer:PacksResource

Finn Bacall edited this page May 19, 2017 · 1 revision

Table of Contents

Packs Resource

Index of packs

URL: GET http://www.myexperiment.org/packs.xml

Example output:

<?xml version="1.0" encoding="UTF-8"?>
<packs>
  <pack resource="http://www.myexperiment.org/packs/1" uri="http://www.myexperiment.org/pack.xml?id=1">Microarray data analysis using R</pack>
  <pack resource="http://www.myexperiment.org/packs/2" uri="http://www.myexperiment.org/pack.xml?id=2">web services info</pack>
  <pack resource="http://www.myexperiment.org/packs/3" uri="http://www.myexperiment.org/pack.xml?id=3">Everything You Need To Know About myExperiment...</pack>
  <pack resource="http://www.myexperiment.org/packs/6" uri="http://www.myexperiment.org/pack.xml?id=6">EBI Web Services</pack>
  ...
</packs>

Create pack

URL: POST http://www.myexperiment.org/pack.xml

Example input:

<?xml version="1.0" encoding="UTF-8"?>
<pack>
  <title>Everything You Need To Know About myExperiment...</title>
  <description>&amp;lt;p&amp;gt;... but were afraid to ask.&amp;lt;/p&amp;gt;&#13;
&amp;lt;p&amp;gt;This is the pack to go to for all information about myExperiment and the people involved in this project!&amp;lt;/p&amp;gt;</description>
</pack>

Example output:

<?xml version="1.0" encoding="UTF-8"?>
<pack uri="http://www.myexperiment.org/pack.xml?id=3" resource="http://http://www.myexperiment.org/packs/3">
  <id>3</id>
  <title>Everything You Need To Know About myExperiment...</title>
  <description>&amp;lt;p&amp;gt;... but were afraid to ask.&amp;lt;/p&amp;gt;&#13;
&amp;lt;p&amp;gt;This is the pack to go to for all information about myExperiment and the people involved in this project!&amp;lt;/p&amp;gt;</description>
  <owner uri="http://www.myexperiment.org/user.xml?id=70" resource="http://www.myexperiment.org/users/70">Jiten Bhagat</owner>
  <created-at>Wed Jul 02 22:31:12 +0100 2008</created-at>
  <tags/>
</pack>

Read pack

URL: GET http://www.myexperiment.org/pack.xml?id=3

Example output:

<?xml version="1.0"?>
<pack uri="http://www.myexperiment.org/pack.xml?id=3" resource="http://www.myexperiment.org/packs/3">
  <id>3</id>
  <title>Everything You Need To Know About myExperiment...</title>
  <description>&amp;lt;p&amp;gt;... but were afraid to ask.&amp;lt;/p&amp;gt;&#xD;
&amp;lt;p&amp;gt;This is the pack to go to for all information about myExperiment and the people involved in this project!&amp;lt;/p&amp;gt;</description>
  <owner resource="http://www.myexperiment.org/users/70" uri="http://www.myexperiment.org/user.xml?id=70">Jiten Bhagat</owner>
  <created-at>Wed Jul 02 22:31:12 +0100 2008</created-at>
  <tags>
    <tag uri="http://www.myexperiment.org/tag.xml?id=864" resource="http://www.myexperiment.org/tags/864">information</tag>
    <tag uri="http://www.myexperiment.org/tag.xml?id=663" resource="http://www.myexperiment.org/tags/663">taverna</tag>
    <tag uri="http://www.myexperiment.org/tag.xml?id=667" resource="http://www.myexperiment.org/tags/667">myexperiment</tag>
    <tag uri="http://www.myexperiment.org/tag.xml?id=2869" resource="http://www.myexperiment.org/tags/2869">starter</tag>
  </tags>
</pack>

Update pack

URL: PUT http://www.myexperiment.org/pack.xml?id=3

Example input:

<?xml version="1.0" encoding="UTF-8"?>
<pack>
  <title>Absolutely Everything You Need To Know About myExperiment...</title>
  <description>&amp;lt;p&amp;gt;... but were afraid to ask.&amp;lt;/p&amp;gt;&#13;
&amp;lt;p&amp;gt;This is the pack to go to for all information about myExperiment and the people involved in this project!&amp;lt;/p&amp;gt;</description>
</pack>

Example output:

<?xml version="1.0"?>
<source="http://www.myexperiment.org/users/70" uri="http://www.myexperiment.org/user.xml?id=70">Jiten Bhagat</owner>
  <created-at>Wed Jul 02 22:31:12 +0100 2008</created-at>
  <tags>pack uri="http://www.myexperiment.org/pack.xml?id=3" resource="http://www.myexperiment.org/packs/3">
  <id>3</id>
  <title>Absolutely Everything You Need To Know About myExperiment...</title>
  <description>&amp;lt;p&amp;gt;... but were afraid to ask.&amp;lt;/p&amp;gt;&#xD;
&amp;lt;p&amp;gt;This is the pack to go to for all information about myExperiment and the people involved in this project!&amp;lt;/p&amp;gt;</description>
  <owner resource="http://www.myexperiment.org/users/70" uri="http://www.myexperiment.org/user.xml?id=70">Jiten Bhagat</owner>
  <created-at>Wed Jul 02 22:31:12 +0100 2008</created-at>
  <tags>
    <tag uri="http://www.myexperiment.org/tag.xml?id=864" resource="http://www.myexperiment.org/tags/864">information</tag>
    <tag uri="http://www.myexperiment.org/tag.xml?id=663" resource="http://www.myexperiment.org/tags/663">taverna</tag>
    <tag uri="http://www.myexperiment.org/tag.xml?id=667" resource="http://www.myexperiment.org/tags/667">myexperiment</tag>
    <tag uri="http://www.myexperiment.org/tag.xml?id=2869" resource="http://www.myexperiment.org/tags/2869">starter</tag>
  </tags>
</pack>

Delete pack

URL: DELETE http://www.myexperiment.org/pack.xml?id=3

Example output:

<?xml version="1.0"?>
<source="http://www.myexperiment.org/users/70" uri="http://www.myexperiment.org/user.xml?id=70">Jiten Bhagat</owner>
  <created-at>Wed Jul 02 22:31:12 +0100 2008</created-at>
  <tags>pack uri="http://www.myexperiment.org/pack.xml?id=3" resource="http://www.myexperiment.org/packs/3">
  <id>3</id>
  <title>Absolutely Everything You Need To Know About myExperiment...</title>
  <description>&amp;lt;p&amp;gt;... but were afraid to ask.&amp;lt;/p&amp;gt;&#xD;
&amp;lt;p&amp;gt;This is the pack to go to for all information about myExperiment and the people involved in this project!&amp;lt;/p&amp;gt;</description>
  <owner resource="http://www.myexperiment.org/users/70" uri="http://www.myexperiment.org/user.xml?id=70">Jiten Bhagat</owner>
  <created-at>Wed Jul 02 22:31:12 +0100 2008</created-at>
  <tags>
    <tag uri="http://www.myexperiment.org/tag.xml?id=864" resource="http://www.myexperiment.org/tags/864">information</tag>
    <tag uri="http://www.myexperiment.org/tag.xml?id=663" resource="http://www.myexperiment.org/tags/663">taverna</tag>
    <tag uri="http://www.myexperiment.org/tag.xml?id=667" resource="http://www.myexperiment.org/tags/667">myexperiment</tag>
    <tag uri="http://www.myexperiment.org/tag.xml?id=2869" resource="http://www.myexperiment.org/tags/2869">starter</tag>
  </tags>
</pack>

Elements for pack

  • id - the id of the pack
  • title - the title of the pack
  • description - a description of the pack
  • owner - the user that is reponsible for the pack
  • created-at - the date/time the pack was created
  • updated-at - the date/time the pack was last modified
  • internal-pack-items - a list of resources internal to myExperiment (e.g. workflows, file and other packs) that are in the pack
  • external-pack-items - a list of external resources (essentially URLs) that are in the pack