Skip to content

Commit

Permalink
JasonLeyba: Updating the wire protocol doc for the new GET /sessions …
Browse files Browse the repository at this point in the history
…command.

r14674
  • Loading branch information
jleyba committed Nov 10, 2011
1 parent 7be1d86 commit f4b0921
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,21 @@ def main():
'A `303 See Other` redirect to `/session/:sessionId`, where'
' `:sessionId` is the ID of the newly created session.'))

resources.append(
Resource('/sessions').
Get('''
Returns a list of the currently active sessions. Each session will be \
returned as a list of JSON objects with the following keys:
|| *Key* || *Type* || *Description ||
|| id || string || The session ID. ||
|| capabilities || object || An object describing the session's \
[#Actual_Capabilities capabilities]. ||
''').
SetReturnType('{Array.<Object>}',
'A list of the currently active sessions.'))

resources.append(
SessionResource('/session/:sessionId').
Get('Retrieve the capabilities of the specified session.').
Expand Down

0 comments on commit f4b0921

Please sign in to comment.