Commit Graph

161 Commits

Author SHA1 Message Date
Sam Woodard 4c0eb15944 typo fix 2015-07-13 14:51:52 -07:00
Sam Woodard b8389265b6 typo fix 2015-07-13 14:51:26 -07:00
Sam Woodard 48a0031e3a typo fix 2015-07-13 14:49:36 -07:00
Sam Woodard c313ba107c link to readme from godoc 2015-07-13 14:41:18 -07:00
Sam Woodard dde4d75da4 fix link 2015-07-13 14:04:08 -07:00
Sam Woodard 3574efbd33 link to godoc 2015-07-13 14:02:26 -07:00
Sam Woodard bc547ac735 more docs including package desc for godoc 2015-07-13 11:59:11 -07:00
Sam Woodard 9333e9b531 add build status badge to readme md 2015-07-13 11:34:03 -07:00
Sam Woodard c88ceb7802 specify go language 2015-07-13 11:31:28 -07:00
Sam Woodard 992c831f5e add travis.yml for build 2015-07-13 11:26:01 -07:00
Sam Woodard 6fb6757b35 lots more docs 2015-07-13 11:23:03 -07:00
Sam Woodard e7bd3d1fbc more docs for MarshalMany 2015-07-13 10:44:47 -07:00
Sam Woodard d9a31fb056 add more docs 2015-07-13 10:10:11 -07:00
Sam Woodard c5ab82d971 fix link 2015-07-13 10:07:55 -07:00
Sam Woodard 1514449cab work on README 2015-07-13 10:07:12 -07:00
Sam Woodard c82586a2bb godocs for UnmarshalPayload 2015-07-13 09:50:57 -07:00
Sam Woodard adefc0a600 no longer used 2015-07-12 13:15:02 -07:00
Sam Woodard 4216780137 yay! finally figured out how to accept []interface{} 2015-07-12 11:45:03 -07:00
Sam Woodard 8f7c63b9c4 change interface of MarshalManyPayload to include reflect.Value for models 2015-07-12 11:37:31 -07:00
Sam Woodard c7fa0d5728 reorg, add list blogs impl 2015-07-12 10:46:51 -07:00
Sam Woodard aa2b010be5 fix unique included array algorithm 2015-07-12 08:46:30 -07:00
Sam Woodard 196492ffe5 only need the included array if sideloading 2015-07-12 08:02:29 -07:00
Sam Woodard 9b34096108 whitespace 2015-07-12 08:00:53 -07:00
Sam Woodard e7bfab161c make utility function to dry off 2015-07-12 07:59:37 -07:00
Sam Woodard ca0304f527 bug fix: don't forget some included nodes 2015-07-12 07:42:52 -07:00
Sam Woodard a6c9e05c33 marshal embedded payload now takes io rather than return struct 2015-07-10 17:34:04 -07:00
Sam Woodard 68c4bcfbb0 move a method higher for godoc 2015-07-10 17:16:26 -07:00
Sam Woodard 9b8432d9d9 bug fix: was missing objects in sideload 2015-07-10 14:31:26 -07:00
Sam Woodard ffcbb660c3 readme work and an example app 2015-07-10 13:50:51 -07:00
Sam Woodard b112561a72 support unmarshal sideloaded records for two-way function 2015-07-10 11:41:54 -07:00
Sam Woodard 0becfab81d remove 'JsonApi' everywhere, since we're already in a pkg 2015-07-10 09:07:12 -07:00
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