Developer:UsersResource

From myExperiment
Jump to: navigation, search

Users Resource

Index of users

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

Example output:

<?xml version='1.0' encoding='UTF-8'?>
<users>
  <user uri='http://www.myexperiment.org/user.xml?id=1' resource='http://www.myexperiment.org/users/1'>Matt Lee</user>
  <user uri='http://www.myexperiment.org/user.xml?id=2' resource='http://www.myexperiment.org/users/2'>David Withers</user>
  <user uri='http://www.myexperiment.org/user.xml?id=3' resource='http://www.myexperiment.org/users/3'>Rob Myers</user>
  <user uri='http://www.myexperiment.org/user.xml?id=4' resource='http://www.myexperiment.org/users/4'>Wm. John Sullivan</user>
  <user uri='http://www.myexperiment.org/user.xml?id=5' resource='http://www.myexperiment.org/users/5'>Stian Soiland-Reyes</user>
  <user uri='http://www.myexperiment.org/user.xml?id=6' resource='http://www.myexperiment.org/users/6'>Duncan Hull</user>
  ...
</users>


Create user

Planned.


Read user

URL: http://www.myexperiment.org/user.xml?id=22

Example output:

<?xml version="1.0" encoding="UTF-8" ?> 
<user uri="http://www.myexperiment.org/user.xml?id=22" resource="http://www.myexperiment.org/users/22">
  <created-at>Mon Jul 23 09:14:48 +0100 2007</created-at> 
  <name>Don Cruickshank</name> 
  <description><p>I am a myExperiment developer.</p></description> 
  <email>dgc@ecs.soton.ac.uk</email> 
  <avatar uri="http://www.myexperiment.org/picture.xml?id=38" resource="http://www.myexperiment.org/users/22/pictures/38"/> 
  <website>http://www.ecs.soton.ac.uk/people/dgc</website> 
</user>


Update user

Planned.


Delete user

Planned.


Elements for user

  • id - the id of the user
  • created-at - the date/time the user was created (uploaded)
  • updated-at - the date/time the user's details were last modified
  • name - the real world name of the user
  • description - a user's description of the themselves
  • email - the publically visable email address of the user
  • avatar - the picture resource the user has chosen as a profile picture
  • city - the city in which the user resides
  • country - the country in which the user resides
  • website - the personal website of the user
  • friends - a list of other users the user is friends with
  • groups - a list of groups the user is a member of
  • favourites - a list of favourite resources, each favourite resource referencing something (e.g. workflows, files, packs, etc.) the user has favourited
  • favourited - a list of resources (e.g. workflows, files, packs, etc.) the user has favourited (bookmarked)
  • workflows - a list of workflows to which the user is the owner
  • files - a list of files to which the user is the owner
  • packs - a list of packs to which the user is the owner
  • tags-applied - a list of tags that have been used by the user
  • taggings-applied - a list of tagging resources (associating tags with resources such as a workflow, file or group) that have created by the user
  • experiments - a list of experiments to which the user is the owner
  • jobs - a list of jobs to which the user is the owner
  • runners - a list of runners (e.g. Taverna enactors) to which the user is the owner