Project talk:Tool Access Control/Solexious Proposal

From London Hackspace Wiki
Revision as of 22:36, 25 March 2013 by Mentar (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Afaik having a in the beginning of the URI is used for parametres that affects the whole system, e.g. 'en' for languages So instead of GET /[nodeID]/card/ It's better to have something along the lines of GET /card/id/[nodeID], this is similar to twitter e.g. /Akki14/status/274145256436547584

Also for adding cards:

  POST /1/card/
  [card to be added],[card added by]

These are not key value pairs, as you'd need to have '[card to be added]=[card added by]' Also you are adding a card, that should really be a PUT request.

PUT /[nodeID]/status/ This isn't creating a status, it's updating it so should really be "post"