Project talk:Tool Access Control/Solexious Proposal

From London Hackspace Wiki
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"