Changeset 42 for trunk/JsonAPI.txt

Show
Ignore:
Timestamp:
08/13/10 21:41:00 (4 years ago)
Author:
clauz
Message:

adding playlist randomization plus small changes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/JsonAPI.txt

    r40 r42  
    11= API = 
    22 
    3  * at the beginning only the user admin and the role admin exist 
    4  * before reserving a new slot an user must define her own non-empty fallback playlist 
    53 * before the definition of a playlist, files must be registered 
    64 
     
    296294            "comment": <comment>, 
    297295            "tags": <tags>, 
    298             "private": (true|false), #true if this will be the user's fallback playlist 
     296            "private": (true|false), #true if this playlist can be viewed only by the owner (or with the canManageAllPlaylists role attribute) 
     297            "random": (true|false), #true if this playlist will be played in random order 
    299298            "viewers": [ # a list of usernames of other users that can watch and play this playlist 
    300299                <username>, 
     
    325324            "comment": <a new comment or null to leave unchanged>, 
    326325            "tags": <new tags or null to leave unchanged>, 
    327             "fallback": (true|false|null) #true if this will be the user's fallback playlist, null to leave unchanged 
     326            "private": (true|false), #true if this playlist can be viewed only by the owner (or with the canManageAllPlaylists role attribute) 
     327            "random": (true|false), #true if this playlist will be played in random order 
    328328            "viewers": [ # a list of usernames of other users that can watch and play this playlist, or null to leave unchanged 
    329329                <username>,