Project talk:Tool Access Control/Solexious Proposal: Difference between revisions
From London Hackspace Wiki
(Created page with "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...") |
No edit summary |
||
Line 7: | Line 7: | ||
[card to be added],[card added by] | [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]' | 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" |
Latest revision as of 22:36, 25 March 2013
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"