restpack-group-client 0.0.46 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,8 +35,8 @@ module RestPack
|
|
35
35
|
hydrate http_get("/api/v1/groups/#{id}.json")
|
36
36
|
end
|
37
37
|
|
38
|
-
def create(
|
39
|
-
http_post("/api/v1/groups", :group =>
|
38
|
+
def create(group)
|
39
|
+
http_post("/api/v1/groups", :group => group)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
@@ -53,6 +53,10 @@ module RestPack
|
|
53
53
|
end
|
54
54
|
|
55
55
|
class InvitationApi < BaseApi
|
56
|
+
def create(invitation)
|
57
|
+
http_post("/api/v1/invitations", :invitation => invitation)
|
58
|
+
end
|
59
|
+
|
56
60
|
def accept(params)
|
57
61
|
http_put("/api/v1/invitations/accept", params)
|
58
62
|
end
|