restpack-group-client 0.0.46 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|