Commit Graph

30 Commits

Author SHA1 Message Date
Sam Woodard 5fc25e655a in marshal methods, write json directly to io.Writer 2015-07-10 08:57:27 -07:00
Sam Woodard d8d9d87573 simplification, whitespace 2015-07-10 08:30:59 -07:00
Sam Woodard 97cf7cfca4 dry off 2015-07-10 08:25:24 -07:00
Sam Woodard 84eed2060a remove arg len check since we already do it above 2015-07-10 08:20:49 -07:00
Sam Woodard a228611aa0 skip field if attr is not in the hash 2015-07-09 12:27:03 -07:00
Sam Woodard db9617ef6f omit zero times from the response 2015-07-09 12:07:33 -07:00
Sam Woodard 6f271d2ac7 Merge branch 'master' of github.com:shwoodard/jsonapi
* 'master' of github.com:shwoodard/jsonapi:
  make utility function to output embedded records
  explicitly check for float64
  Add test for set id
2015-07-08 16:48:19 -07:00
Sam Woodard fcfbda00d2 licence and begin readme 2015-07-08 16:48:13 -07:00
Sam Woodard 5299c5212d make utility function to output embedded records 2015-07-08 13:28:38 -07:00
Sam Woodard beb1f77731 explicitly check for float64 2015-07-08 13:14:14 -07:00
Sam Woodard c887cfc585 Add test for set id 2015-07-08 13:11:03 -07:00
Sam Woodard 7430fd0b0c dry off, error if tag does not contain two arguments 2015-07-08 11:49:36 -07:00
Sam Woodard 8de6c952ef test request relationships, nested relationships 2015-07-08 09:35:20 -07:00
Sam Woodard fdc14b7be4 handle embedded records for requests 2015-07-07 15:46:20 -07:00
Sam Woodard 81bf23f93f support marshalling a list of models 2015-07-07 09:52:38 -07:00
Sam Woodard 0525400acb fix relationships--add data--to comply w spec 2015-07-06 17:04:26 -07:00
Sam Woodard 99d5ee6428 break up tests 2015-07-06 14:41:53 -07:00
Sam Woodard c6b352483c avoid variable name collision 2015-07-06 14:39:24 -07:00
Sam Woodard f4c5ee491c switch to using unix timestamps in payloads 2015-07-06 14:35:17 -07:00
Sam Woodard 3fbd60ec33 reorg 2015-07-06 13:41:38 -07:00
Sam Woodard 8be7afb2fe deserialize request id and attrs, including parsing time 2015-07-06 13:40:43 -07:00
Sam Woodard 00a581297a rename method, remove debug code 2015-07-06 12:06:12 -07:00
Sam Woodard d45d528865 add assertion that there are two posts 2015-07-06 12:00:17 -07:00
Sam Woodard 68210ff3ec rename struct, add test for relationships 2015-07-06 11:57:20 -07:00
Sam Woodard d1af74e681 removed method skeleton 2015-07-06 11:46:06 -07:00
Sam Woodard 65952bdedd support use of structs to pointers 2015-07-06 10:38:42 -07:00
Sam Woodard f8d5fbba3d rename files, only initialize included if there are relationships 2015-07-06 09:24:35 -07:00
Sam Woodard e039cc4394 handle single relation, and make included unique 2015-07-05 12:12:09 -07:00
Sam Woodard b321aa831e basic handling of many relationship 2015-07-05 10:59:35 -07:00
Sam Woodard 0aa225cfcc Initial commit 2015-07-05 08:59:30 -07:00