welcome: please sign in
location: Diff for "u/Stiletto/BnW/RESTfulDraft"
Differences between revisions 2 and 3
Revision 2 as of 2013-02-14 19:13:32
Size: 2205
Editor: Stiletto
Comment:
Revision 3 as of 2013-02-14 19:26:33
Size: 2435
Editor: Stiletto
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
  "register": command_register.cmd_register, + "register": command_register.cmd_register,
Line 4: Line 4:
  "interface": command_interface.cmd_interface, + "interface": command_interface.cmd_interface,
Line 14: Line 14:
  "on": command_onoff.cmd_on,
  "off": command_onoff.cmd_off,
+ "on": command_onoff.cmd_on,
+ "off": command_onoff.cmd_off,
Line 18: Line 18:
  "userlist": command_userlist.cmd_userlist,
  "vcard": command_vcard.cmd_vcard,
+ "userlist": command_userlist.cmd_userlist,
+ "vcard": command_vcard.cmd_vcard,
Line 25: Line 25:
  "update": command_update.cmd_update,
  "userinfo": command_userinfo.cmd_userinfo,
+ "update": command_update.cmd_update,
+ "userinfo": command_userinfo.cmd_userinfo,
Line 32: Line 32:
    GET -- list/search (replaces: show, search, today)     GET -- list/search (replaces: show, today)
Line 34: Line 34:
    POST -- update (tags/clubs only, replaces: update)     PUT -- update (tags/clubs only, replaces: update)
Line 56: Line 56:

/users/
    GET -- list/query (replaces: userlist, whoami)
/users/<name>
    POST -- register (replaces: register)
    PUT -- change settings (replaces: interface, settings, vcard, on, off)
    GET -- get info (replaces: userinfo)

   1 +   "register":             command_register.cmd_register,
   2 +   "search":               command_search.cmd_search,
   3 +   "interface":            command_interface.cmd_interface,
   4 +   "subscriptions/add":    command_subscription.cmd_subscribe,
   5 +   "subscriptions/del":    command_subscription.cmd_unsubscribe,
   6 +   "subscriptions":        command_subscription.cmd_subscriptions,
   7     "feed":                 command_show.cmd_feed,
   8 +   "today":                command_show.cmd_today,
   9 +   "show":                 command_show.cmd_show,
  10 +   "post":                 command_post.cmd_post,
  11 +   "comment":              command_post.cmd_comment,
  12     "recommend":            command_post.cmd_recommend,
  13 +   "on":                   command_onoff.cmd_on,
  14 +   "off":                  command_onoff.cmd_off,
  15 +   "delete":               command_delete.cmd_delete,
  16     "pm":                   command_pm.cmd_pm,
  17 +   "userlist":             command_userlist.cmd_userlist,
  18 +   "vcard":                command_vcard.cmd_vcard,
  19     "clubs":                command_clubs.cmd_clubs,
  20     "tags":                 command_clubs.cmd_tags,
  21     "passlogin":            command_login.cmd_passlogin,
  22     "blacklist":            command_bl.cmd_blacklist,
  23     "stat":                 command_stat.cmd_stat,
  24 +   "update":               command_update.cmd_update,
  25 +   "userinfo":             command_userinfo.cmd_userinfo,

Objects and actions

/messages/
    POST -- create post (replaces: post)
    GET -- list/search (replaces: show, today)
/messages/<id>
    PUT -- update (tags/clubs only, replaces: update)
    GET -- get (replaces: show -m)
    DELETE -- delete (replaces: delete)

/comments/<message>/
    POST -- create comment (replaces: comment)
    GET -- get comments for message (replaces: show -rm)

/comments/<message>/<id>
    GET -- get comment (replaces: nothing, maybe show -rm)
    DELETE -- delete comment (replaces: delete)

/subscriptions/
    GET -- get list (replaces: subscriptions)

/subscriptions/<type>/
    GET -- get list
    
/subscriptions/<type>/<target>
    POST -- create
    GET -- get
    DELETE -- delete

/users/
    GET -- list/query (replaces: userlist, whoami)
/users/<name>
    POST -- register (replaces: register)
    PUT -- change settings (replaces: interface, settings, vcard, on, off)
    GET -- get info (replaces: userinfo)

u/Stiletto/BnW/RESTfulDraft (last edited 2013-02-14 19:35:33 by Stiletto)