{"issue":{"created_at":"2011-12-08T23:46:17Z","state":"open","updated_at":"2011-12-08T23:46:17Z","comments":0,"user":{"gravatar_id":"16cd7ea2d809adb6b5337e2b900f75fa","id":994668,"url":"https://api.github.com/users/nigelpegg","avatar_url":"https://secure.gravatar.com/avatar/16cd7ea2d809adb6b5337e2b900f75fa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"nigelpegg"},"body":"a book can have N book_tags, each one comprised of a name and value pair (eg: \"subject\":\"plumbing\", \"category\":\"books we love\"). This gives us a ton of flexibility to tag stuff as we see fit.\r\n\r\nA traditional way to create a tag would be with a tags_controller POST, but this means N POSTs, which is a little unnecessary.\r\n\r\nProposal : we take POSTs /books/:bookID/tags in 2 different ways - the controller needs to figure it out based on the params : \r\n\r\nPARAMS VARIANT 1 : simply creates 1 new tag for the book:\r\n{remote:true, utf8:\"check\", format:\"json\", tag:{name:\"foo\", value:\"bar\"}}\r\n\r\nPARAMS VARIANT 2 : bulk-create multiple tags\r\n{remote:true, utf8:\"check\", format:\"json\", tags:[{name:\"foo\", value:\"bar\"}, {name:\"foo\", value:\"bar\"}]}\r\n\r\nNote the plural \"tags\" and array of name-value pairs in variant 2.\r\n","assignee":null,"id":2496328,"number":25,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"need a bulk book_tag poster","html_url":"https://github.com/nigelpegg/auth_basics/issues/25","closed_at":null,"url":"https://api.github.com/repos/nigelpegg/auth_basics/issues/25","milestone":null},"action":"opened"}