framework/extensions
Dave Shoreman f61d834a76 Enable parent to be set during creation via API (#39)
* Enable parent to be set during creation via API

Sets the parent ID as long as it exists and is a top-level primary tag.
If it's not, it'll simply be ignored. Position is set automatically to
be one higher than the current highest, or 0 if parent has no children.

Example data (in addition to the usual attributes):
```
"relationships": {
    "parent": {
        "data": {
            "id": 1
        }
    }
}
```

* Add support for creating top-level tags

To set a top-level primary tag, pass parent id of 0
For a secondary tag, pass null or remove it from the request
To set as a child, pass the parent tag's id
2017-04-11 13:54:35 +09:30
..
tags Enable parent to be set during creation via API (#39) 2017-04-11 13:54:35 +09:30