Developer:ExternalsResource

From myExperiment
Jump to: navigation, search

Externals Resource

An external is a reference to another resource outside of myExperiment. Currently, these are only used in packs.

Index of externals

Planned.


Create external

Implemented - missing documentation


Read external

URL: GET http://www.myexperiment.org/external-pack-item.xml?id=6

Example output:

<external-pack-item uri="http://www.myexperiment.org/external-pack-item.xml?id=6" resource="http://wiki.myexperiment.org">
  <id>6</id>
  <owner uri="http://www.myexperiment.org/user.xml?id=70" resource="http://www.myexperiment.org/users/70">Jiten Bhagat</owner>
  <pack>Everything You Need To Know About myExperiment...</pack>
  <title>The Project Wiki</title>
  <uri>http://wiki.myexperiment.org</uri>
  <alternate-uri/>
  <comment>Check this out for more information about the myExperiment project</comment>
  <created-at>Wed Jul 02 22:31:56 +0100 2008</created-at>
  <updated-at>Wed Jul 02 23:12:37 +0100 2008</updated-at>
</external-pack-item>

Update external

Implemented - missing documentation.


Delete external

URL: DELETE http://www.myexperiment.org/external-pack-item.xml?id=6

Example output:

<external-pack-item uri="http://www.myexperiment.org/external-pack-item.xml?id=6" resource="http://wiki.myexperiment.org">
  <id>6</id>
  <owner uri="http://www.myexperiment.org/user.xml?id=70" resource="http://www.myexperiment.org/users/70">Jiten Bhagat</owner>
  <pack>Everything You Need To Know About myExperiment...</pack>
  <title>The Project Wiki</title>
  <uri>http://wiki.myexperiment.org</uri>
  <alternate-uri/>
  <comment>Check this out for more information about the myExperiment project</comment>
  <created-at>Wed Jul 02 22:31:56 +0100 2008</created-at>
  <updated-at>Wed Jul 02 23:12:37 +0100 2008</updated-at>
</external-pack-item>


Elements for external

  • id - the id of the external pack item
  • owner - the user who added the external resource to the pack
  • pack - the pack to which the external resource has been added
  • title - the title of the external resource in the context of the pack
  • uri - the primary uri for the external resource
  • alternate-uri - an alternative uri for the external resource
  • comment - a comment about external resource in the context of the pack
  • created-at - the date/time the external resource was added to the pack
  • updated-at the date/time the details for the external pack item were last updated