{"action":"opened","issue":{"url":"https://api.github.com/repos/PFG-NUMIS/numis/issues/3","labels_url":"https://api.github.com/repos/PFG-NUMIS/numis/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/PFG-NUMIS/numis/issues/3/comments","events_url":"https://api.github.com/repos/PFG-NUMIS/numis/issues/3/events","html_url":"https://github.com/PFG-NUMIS/numis/issues/3","id":54167550,"number":3,"title":"Change groupbuy API responses to use json+hal","user":{"login":"lbacas","id":9915478,"avatar_url":"https://avatars.githubusercontent.com/u/9915478?v=3","gravatar_id":"","url":"https://api.github.com/users/lbacas","html_url":"https://github.com/lbacas","followers_url":"https://api.github.com/users/lbacas/followers","following_url":"https://api.github.com/users/lbacas/following{/other_user}","gists_url":"https://api.github.com/users/lbacas/gists{/gist_id}","starred_url":"https://api.github.com/users/lbacas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbacas/subscriptions","organizations_url":"https://api.github.com/users/lbacas/orgs","repos_url":"https://api.github.com/users/lbacas/repos","events_url":"https://api.github.com/users/lbacas/events{/privacy}","received_events_url":"https://api.github.com/users/lbacas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-13T09:27:21Z","updated_at":"2015-01-13T09:27:21Z","closed_at":null,"body":"Modify Groupbuy response to use JSON+HAL standard.\r\n\r\nExamples: \r\nGET /api/v1/groupbuys:\r\n{\r\n    \"_links\": {\r\n        \"self\": {\r\n            \"href\": \"/groupbuys/\"\r\n        },\r\n        \"curies\": [\r\n            {\r\n                \"name\": \"nu\",\r\n                \"href\": \"/api/v1/{rel}\",\r\n                \"templated\": true\r\n            }\r\n        ],\r\n        \"nu:groupbuy\": [\r\n            {\r\n                \"href\": \"/groupbuys/547e3ab9b1a7a0ad7df3fcac\",\r\n                \"title\": \"Japón 500 yenes - Serie prefecturas (Septiembre 2014)\",\r\n                \"name\": \"jap-n-500-yenes-serie-prefecturas-septiembre-2014\",\r\n                \"status\": \"new\",\r\n                \"description\": \"aaaa\"\r\n            },\r\n            {\r\n                \"href\": \"/groupbuys/547ef11a243fb09b8be7764c\",\r\n                \"title\": \"Japón 500 yenes - Serie prefecturas (Septiembre 2014)\",\r\n                \"name\": \"jap-n-500-yenes-serie-prefecturas-septiembre-2014-2\",\r\n                \"status\": \"new\",\r\n                \"description\": \"aaaa\"\r\n            }\r\n        ]\r\n    }\r\n}\r\n\r\n\r\nGET /api/v1/groupbuys/547e3ab9b1a7a0ad7df3fcac:\r\n{\r\n    \"_links\": {\r\n        \"self\": {\r\n            \"href\": \"/groupbuys/547e3ab9b1a7a0ad7df3fcac\"\r\n        },\r\n        \"curies\": [\r\n            {\r\n                \"name\": \"nu\",\r\n                \"href\": \"/api/v1/{rel}\",\r\n                \"templated\": true\r\n            }\r\n        ],\r\n        \"nu:members\": {\r\n            \"href\": \"/users/54914a1380049493ffe53dd7/members\",\r\n            \"title\": \"Groupbuy members\"\r\n        },\r\n        \"nu:managers\": {\r\n            \"href\": \"/users/54914a1380049493ffe53dd7/managers\",\r\n            \"title\": \"Grupbuy managers\"\r\n        },\r\n        \"nu:items\": {\r\n            \"href\": \"/users/54914a1380049493ffe53dd7/items\",\r\n            \"title\": \"Groupbuy items\"\r\n        }\r\n    },\r\n    \"title\": \"Japón 500 yenes - Serie prefecturas (Septiembre 2014)\",\r\n    \"name\": \"jap-n-500-yenes-serie-prefecturas-septiembre-2014-2\",\r\n    \"status\": \"new\",\r\n    \"description\": \"aaaa\",\r\n    \"name\": \"dj-blue\",\r\n    \"_id\": \"547e3ab9b1a7a0ad7df3fcac\",\r\n    \"updates\": [\r\n        {\r\n            \"publishDate\": \"2014-12-19T10:16:54.009Z\",\r\n            \"textInfo\": \"bla bla bla 1\"\r\n        },\r\n        {\r\n            \"publishDate\": \"2014-12-22T22:18:33.009Z\",\r\n            \"textInfo\": \"bla bla bla 2\"\r\n        },\r\n    ],\r\n    \"visibility\": {\r\n        \"items\": \"public\",\r\n        \"managers\": \"public\",\r\n        \"members\": \"restricted\",\r\n        \"itemNumbers\": \"public\",\r\n        \"itemsByMember\": \"private\",\r\n        \"paymentStatus\": \"restricted\",\r\n        \"shipmentsState\": \"restricted\"\r\n    }\r\n}"}}