README.md in conglomerate-0.8.1 vs README.md in conglomerate-0.9.0
- old
+ new
@@ -46,10 +46,12 @@
attribute :event_ids, :rel => :events { |item| event_url(item.event_ids.join(",")) }
link :root { root_url }
query :search, :data => :id { search_teams_url }
+
+ command :populate, :data => :id { populate_teams_url }
end
# Step 2: Serialize any object
class TeamsController < ApplicationController
@@ -98,9 +100,18 @@
],
"queries": [
{
"rel": "search",
"href": "http://example.com/teams/search",
+ "data": [
+ {"name": "id", "value": ""}
+ ]
+ }
+ ],
+ "commands": [
+ {
+ "rel": "populate",
+ "href": "http://example.com/teams/populate",
"data": [
{"name": "id", "value": ""}
]
}
],