welcome: please sign in
location: Diff for "u/Stiletto/BnW/RESTfulDraft"
Differences between revisions 1 and 2
Revision 1 as of 2013-02-14 19:12:35
Size: 2165
Editor: Stiletto
Comment:
Revision 2 as of 2013-02-14 19:13:32
Size: 2205
Editor: Stiletto
Comment:
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
===== Objects and actions =====
Line 31: Line 32:
    GET -- list (replaces: show, search, today)     GET -- list/search (replaces: show, search, today)

   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, search, today)
/messages/<id>
    POST -- 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

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