Developer:CreditsResource

From myExperiment
Jump to: navigation, search

Index of credits

URI: GET http://www.myexperiment.org/credits.xml

Example output:

<?xml version="1.0"?>
<credits>
  <credit uri="http://www.myexperiment.org/credit.xml?id=5"/>
  <credit uri="http://www.myexperiment.org/credit.xml?id=6"/>
  <credit uri="http://www.myexperiment.org/credit.xml?id=7"/>
  <credit uri="http://www.myexperiment.org/credit.xml?id=8"/>
  <credit uri="http://www.myexperiment.org/credit.xml?id=10"/>
  ...
</credits>


Create credit

Planned.


Read credit

URL: GET http://www.myexperiment.org/credit.xml?id=349

Example output:

<?xml version="1.0"?>
<credit uri="http://www.myexperiment.org/credit.xml?id=349">
  <id>349</id>
  <creditor uri="http://www.myexperiment.org/user.xml?id=22" resource="http://www.myexperiment.org/users/22"/>
  <object>
    <workflow resource="http://www.myexperiment.org/workflows/173" uri="http://www.myexperiment.org/workflow.xml?id=173" version="2">Unique tags</workflow>
  </object>
  <created-at>Tue Mar 11 16:52:43 +0000 2008</created-at>
</credit>


Update credit

Not implemented as there is nothing to update.


Delete credit

Planned.


Elements for credit

  • id - the id of the credit
  • creditor - the user who is being credited
  • object - the object for which the user is being credited (e.g. workflow, file, etc.)
  • created-at - the date/time the credit was created
  • updated-at - the date/time the credit was last modified