Skip to content
Newer
Older
100644 330 lines (181 sloc) 10 KB
35cbe1f @larsburgess Fixing travis badge
larsburgess authored
1 rhoconnect-rb [![Build Status](https://secure.travis-ci.org/rhomobile/rhoconnect-rb.png)](http://travis-ci.org/rhomobile/rhoconnect-rb)
baca514 @larsburgess first readme
larsburgess authored
2 ===
3
1996af5 @larsburgess small typos
larsburgess authored
4 A ruby library for the [RhoConnect](http://rhomobile.com/products/rhoconnect) App Integration Server.
baca514 @larsburgess first readme
larsburgess authored
5
1996af5 @larsburgess small typos
larsburgess authored
6 Using rhoconnect-rb, your application's model data will transparently synchronize with a mobile application built on the [Rhodes framework](http://rhomobile.com/products/rhodes), or any of the available [RhoConnect clients](http://rhomobile.com/products/rhoconnect/). This client includes built-in support for [ActiveRecord](http://ar.rubyonrails.org/) and [DataMapper](http://datamapper.org/) models.
baca514 @larsburgess first readme
larsburgess authored
7
8 ## Getting started
9
06141e9 @larsburgess top-level rename
larsburgess authored
10 Load the `rhoconnect-rb` library:
baca514 @larsburgess first readme
larsburgess authored
11
06141e9 @larsburgess top-level rename
larsburgess authored
12 require 'rhoconnect-rb'
baca514 @larsburgess first readme
larsburgess authored
13
68c5ff7 name change
lucas campbell-rossen authored
14 Note, if you are using datamapper, install the `dm-serializer` library and require it in your application. `rhoconnect-rb` depends on this utility to interact with Rhoconnect applications using JSON.
fab062a @larsburgess fixing status
larsburgess authored
15
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
16 ## Setup the Model
3f7ec12 change name to rb
lucas campbell-rossen authored
17 Now include Rhoconnectrb::Resource in a model that you want to synchronize with your mobile application:
baca514 @larsburgess first readme
larsburgess authored
18
6d52a71 @larsburgess fixing docs on partitions
larsburgess authored
19 class Product < ActiveRecord::Base
3f7ec12 change name to rb
lucas campbell-rossen authored
20 include Rhoconnectrb::Resource
baca514 @larsburgess first readme
larsburgess authored
21 end
fab062a @larsburgess fixing status
larsburgess authored
22
baca514 @larsburgess first readme
larsburgess authored
23 Or, if you are using DataMapper:
24
6d52a71 @larsburgess fixing docs on partitions
larsburgess authored
25 class Product
baca514 @larsburgess first readme
larsburgess authored
26 include DataMapper::Resource
3f7ec12 change name to rb
lucas campbell-rossen authored
27 include Rhoconnectrb::Resource
baca514 @larsburgess first readme
larsburgess authored
28 end
67f1b3c @larsburgess updating readme with rhoconnect_query
larsburgess authored
29
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
30 ## Partitioning Datasets
fab062a @larsburgess fixing status
larsburgess authored
31
67f1b3c @larsburgess updating readme with rhoconnect_query
larsburgess authored
32 Next, your models will need to declare a partition key for `rhoconnect-rb`. This partition key is used by `rhoconnect-rb` to uniquely identify the model dataset when it is stored in a rhoconnect instance. It is typically an attribute on the model or related model. `rhoconnect-rb` supports two types of partitions:
baca514 @larsburgess first readme
larsburgess authored
33
8e3317f @larsburgess small typo
larsburgess authored
34 * :app - No unique key will be used, a shared dataset is synchronized for all users.
6d52a71 @larsburgess fixing docs on partitions
larsburgess authored
35 * lambda { some lambda } - Execute a lambda which returns the unique key string.
baca514 @larsburgess first readme
larsburgess authored
36
67f1b3c @larsburgess updating readme with rhoconnect_query
larsburgess authored
37 For example, the `Product` model above might have a `belongs_to :user` relationship. This provides us a simple way to organize the `Product` dataset for rhoconnect by reusing this relationship. The partition identifying a username would be declared as:
baca514 @larsburgess first readme
larsburgess authored
38
6d52a71 @larsburgess fixing docs on partitions
larsburgess authored
39 class Product < ActiveRecord::Base
3f7ec12 change name to rb
lucas campbell-rossen authored
40 include Rhoconnectrb::Resource
fab062a @larsburgess fixing status
larsburgess authored
41
6d52a71 @larsburgess fixing docs on partitions
larsburgess authored
42 belongs_to :user
fab062a @larsburgess fixing status
larsburgess authored
43
44 def partition
c013d1f @larsburgess * Added simplecov
larsburgess authored
45 lambda { self.user.username }
1e0d40f fix for partition defined as class method
lucas campbell-rossen authored
46 end
baca514 @larsburgess first readme
larsburgess authored
47 end
fab062a @larsburgess fixing status
larsburgess authored
48
67f1b3c @larsburgess updating readme with rhoconnect_query
larsburgess authored
49 Now all of the `Product` data synchronized by rhoconnect will organized by `self.user.username`. Note: You can also used a fixed key if the dataset doesn't require a dynamic value:
50
8e3317f @larsburgess small typo
larsburgess authored
51 def partition
52 :app
53 end
fab062a @larsburgess fixing status
larsburgess authored
54
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
55 For more information about Rhoconnect partitions, please refer to the [Rhoconnect docs](http://docs.rhomobile.com/rhoconnect/source-adapters#data-partitioning).
baca514 @larsburgess first readme
larsburgess authored
56
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
57 ## Querying Datasets
67f1b3c @larsburgess updating readme with rhoconnect_query
larsburgess authored
58
59 `rhoconnect-rb` installs a `/rhoconnect/query` route in your application which the Rhoconnect instance invokes to query the dataset for the dataset you want to synchronize. This route is mapped to a `rhoconnect_query` method in your model. This method should return a collection of objects:
60
61 class Product < ActiveRecord::Base
929b21b update readme
lucas campbell-rossen authored
62 include Rhoconnectrb::Resource
fab062a @larsburgess fixing status
larsburgess authored
63
67f1b3c @larsburgess updating readme with rhoconnect_query
larsburgess authored
64 belongs_to :user
fab062a @larsburgess fixing status
larsburgess authored
65
66 def partition
c013d1f @larsburgess * Added simplecov
larsburgess authored
67 lambda { self.user.username }
1e0d40f fix for partition defined as class method
lucas campbell-rossen authored
68 end
fab062a @larsburgess fixing status
larsburgess authored
69
e3ecb32 in method rhoconnect_query made param attributes optional
Alexander Babichev authored
70 def self.rhoconnect_query(partition, attributes = nil)
3007cb8 Updated REST API calls to v1
Alexander Babichev authored
71 Product.includes(:user).where("users.username = ?", partition)
67f1b3c @larsburgess updating readme with rhoconnect_query
larsburgess authored
72 end
73 end
74
fab062a @larsburgess fixing status
larsburgess authored
75 In this example, `self.rhoconnect_query` returns a list of products where the partition string (provided by the rhoconnect instance) matches the `user_id` field in the products table.
67f1b3c @larsburgess updating readme with rhoconnect_query
larsburgess authored
76
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
77 ## Configuration and Authentication
79adaa1 @larsburgess added config docs
larsburgess authored
78
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
79 ### Running RhoConnect Manually
0bc0820 @larsburgess adding docs on app_endpoint
larsburgess authored
80
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
81 Configure RhoConnect in an initializer like `config/initializers/rhoconnect.rb` (for Rails), or directly in your application (i.e. Sinatra). Here you will setup the rhoconnect uri (the location of your RhoConnect instance), the api\_token (see [rhoconnect:get_token](http://docs.rhomobile.com/rhoconnect/command-line#rake-tasks) rake task), and app\_endpoint (the location of your ruby app):
79adaa1 @larsburgess added config docs
larsburgess authored
82
83 config.uri = "http://myrhoconnect.com"
84 config.token = "secrettoken"
958190c @larsburgess updating readme
larsburgess authored
85 config.app_endpoint = "http://myapp.heroku.com"
fab062a @larsburgess fixing status
larsburgess authored
86
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
87 If `app_endpoint` is defined, your Rhoconnect instance will be configured to query data from the endpoint using the rhoconnect_query method in your model. For example, if your `app_endpoint` is defined as "http://myapp.heroku.com", RhoConnect will query data with:
958190c @larsburgess updating readme
larsburgess authored
88
89 POST http://myapp.heroku.com/rhoconnect/query
79adaa1 @larsburgess added config docs
larsburgess authored
90
fab062a @larsburgess fixing status
larsburgess authored
91 Example:
79adaa1 @larsburgess added config docs
larsburgess authored
92
c013d1f @larsburgess * Added simplecov
larsburgess authored
93 Rhoconnectrb.configure do |config|
94 config.uri = "http://localhost:8675"
95 config.token = "mydevtoken"
96 config.app_endpoint = "http://localhost:3000"
79adaa1 @larsburgess added config docs
larsburgess authored
97 end
fab062a @larsburgess fixing status
larsburgess authored
98
79adaa1 @larsburgess added config docs
larsburgess authored
99 Example with authentication:
100
0bc0820 @larsburgess adding docs on app_endpoint
larsburgess authored
101 `rhoconnect-rb` installs a `/rhoconnect/authenticate` route into your application which will receive credentials from the client. Add block which handles the credentials:
79adaa1 @larsburgess added config docs
larsburgess authored
102
929b21b update readme
lucas campbell-rossen authored
103 Rhoconnectrb.configure do |config|
c013d1f @larsburgess * Added simplecov
larsburgess authored
104 config.uri = "http://localhost:8675"
105 config.token = "mydevtoken"
106 config.app_endpoint = "http://localhost:3000"
fab062a @larsburgess fixing status
larsburgess authored
107 config.authenticate = lambda { |credentials|
c013d1f @larsburgess * Added simplecov
larsburgess authored
108 User.authenticate(credentials[:login], credentials[:password])
79adaa1 @larsburgess added config docs
larsburgess authored
109 }
110 end
fab062a @larsburgess fixing status
larsburgess authored
111
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
112 ### Using the [RhoConnect Heroku Addon](http://docs.rhomobile.com/rhoconnect/heroku-addon)
113
114 If you're using the [RhoConnect Heroku Addon](http://docs.rhomobile.com/rhoconnect/heroku-addon), then you can omit the config.uri and config.token (they are managed for you):
115
929b21b update readme
lucas campbell-rossen authored
116 Rhoconnectrb.configure do |config|
c013d1f @larsburgess * Added simplecov
larsburgess authored
117 config.app_endpoint = "http://myapp.heroku.com"
fab062a @larsburgess fixing status
larsburgess authored
118 config.authenticate = lambda { |credentials|
119 User.authenticate(credentials[:login], credentials[:password])
b4a7e02 @larsburgess fixing token part of docs
larsburgess authored
120 }
121 end
79adaa1 @larsburgess added config docs
larsburgess authored
122
c013d1f @larsburgess * Added simplecov
larsburgess authored
123 ## Rhoconnect-rb API
929b21b update readme
lucas campbell-rossen authored
124
125 ### Overview of the API
126
127 The Rhoconnectrb::API module contains routes to all the resources available in <a href='http://docs.rhomobile.com/rhoconnect/rest-api'>Rhoconnect</a>. At a high level the API calls take on the following syntax:
128
129 Namespace::Resource.verb_action1_action2_...([resource_id,action1_id,action2_id],data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
130
131 Some of these values are not used for every API call such as resource_id and data.
929b21b update readme
lucas campbell-rossen authored
132
133 ### System Resource
134
135 #### `POST /rc/v1/system/login`
136
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
137
929b21b update readme
lucas campbell-rossen authored
138 data = {:login=>'username',:password=>'password'}
139 Rhoconnectrb::API::System.post_login(data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
140
929b21b update readme
lucas campbell-rossen authored
141 #### `GET /rc/v1/system/license`
142
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
143
929b21b update readme
lucas campbell-rossen authored
144 Rhoconnectrb::API::System.get_license
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
145
929b21b update readme
lucas campbell-rossen authored
146 #### `POST /rc/v1/system/reset`
147
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
148
929b21b update readme
lucas campbell-rossen authored
149 Rhoconnectrb::API::System.post_reset({})
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
150
929b21b update readme
lucas campbell-rossen authored
151 #### `GET /rc/v1/system/appserver`
152
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
153
929b21b update readme
lucas campbell-rossen authored
154 Rhoconnectrb::API::System.get_appserver
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
155
929b21b update readme
lucas campbell-rossen authored
156 #### `POST /rc/v1/system/appserver`
157
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
158
929b21b update readme
lucas campbell-rossen authored
159 data = {:adapter_url=>'http://test.com'}
160 Rhoconnectrb::API::System.post_appserver(data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
161
929b21b update readme
lucas campbell-rossen authored
162 #### `GET /rc/v1/system/stats`
163
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
164
9a906bb fix
lucas campbell-rossen authored
165 data ={:names=>"*sources*"}
166 Rhoconnectrb::API::System.get_stats(data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
167
929b21b update readme
lucas campbell-rossen authored
168 ### Store Resource
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
169
929b21b update readme
lucas campbell-rossen authored
170 #### `GET /rc/v1/store/:doc`
171
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
172
929b21b update readme
lucas campbell-rossen authored
173 Rhoconnectrb::API::Store.get('docname')
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
174
929b21b update readme
lucas campbell-rossen authored
175 #### `POST /rc/v1/store/:doc`
176
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
177
929b21b update readme
lucas campbell-rossen authored
178 data = {:data=>{:id=3},:append=>false}
179 Rhoconnectrb::API::Store.post('docname',data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
180
929b21b update readme
lucas campbell-rossen authored
181 ### User Resource
182
183 #### `POST /rc/v1/users`
184
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
185
929b21b update readme
lucas campbell-rossen authored
186 data = {:attributes=>{:login=>'login',:password=>'password'}}
187 Rhoconnectrb::API::Users.post(data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
188
929b21b update readme
lucas campbell-rossen authored
189 #### `DELETE /rc/v1/users/:user_id`
190
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
191
929b21b update readme
lucas campbell-rossen authored
192 Rhoconnectrb::API::Users.delete('user_id')
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
193
929b21b update readme
lucas campbell-rossen authored
194 #### `PUT /rc/v1/users/:user_id`
195
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
196
929b21b update readme
lucas campbell-rossen authored
197 data = {:attributes=>{:a_user_specific_attribute => a_user_specific_attribute_value}}
198 Rhoconnectrb::API::Users.put('user_id',data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
199
929b21b update readme
lucas campbell-rossen authored
200 #### `GET /rc/v1/users`
201
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
202
929b21b update readme
lucas campbell-rossen authored
203 Rhoconnectrb::API::Users.get
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
204
929b21b update readme
lucas campbell-rossen authored
205 #### `Get /rc/v1/users/:user_id`
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
206
929b21b update readme
lucas campbell-rossen authored
207 Rhoconnectrb::API::Users.get('user_id')
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
208
929b21b update readme
lucas campbell-rossen authored
209 #### `Get /rc/v1/users/:user_id/clients`
210
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
211
929b21b update readme
lucas campbell-rossen authored
212 Rhoconnectrb::API::Users.get_clients(['user_id','client_id'])
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
213
929b21b update readme
lucas campbell-rossen authored
214 #### `DELETE /rc/v1/users/:user_id/clients/:client_id`
215
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
216
929b21b update readme
lucas campbell-rossen authored
217 Rhoconnectrb::API::Users.delete_clients(['user_id','client_id'])
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
218
929b21b update readme
lucas campbell-rossen authored
219 #### `GET /rc/v1/users/:user_id/sources/:source_id/docnames`
220
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
221
929b21b update readme
lucas campbell-rossen authored
222 Rhoconnectrb::API::Users.get_sources_docnames(['user_id','source_id'])
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
223
929b21b update readme
lucas campbell-rossen authored
224 #### `POST /rc/v1/users/ping`
225
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
226
929b21b update readme
lucas campbell-rossen authored
227 data = {
228 :api_token => token,
229 :user_id => [array_of_users],
230 :sources => source_name,
231 :message => 'hello world',
232 :vibrate => 2000,
233 :sound => 'hello.mp3'
234 }
235 Rhoconnectrb::API::Users.post_ping(data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
236
929b21b update readme
lucas campbell-rossen authored
237 #### `GET /rc/v1/users/:user_id/sources/:source_id/docs/:doc`
238
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
239
929b21b update readme
lucas campbell-rossen authored
240 Rhoconnectrb::API::Users.get_sources_docs(['user_id','source_id','docname'])
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
241
929b21b update readme
lucas campbell-rossen authored
242 #### `POST /rc/v1/users/:user_id/sources/:source_id/docs/:doc`
243
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
244
929b21b update readme
lucas campbell-rossen authored
245 data = {:data=>data,:append=>false}
246 Rhoconnectrb::API::Users.post_sources_docs(['user_id','source_id','docname'],data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
247
929b21b update readme
lucas campbell-rossen authored
248 ### Read State Resource
249
250 #### `POST /rc/v1/read_state/users/:user_id/sources/:source_id`
251
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
252
929b21b update readme
lucas campbell-rossen authored
253 data = {:refresh_time => 100}
254 Rhconnectrb::API::ReadState.post_users_sources(['user_id','source_id'])
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
255
929b21b update readme
lucas campbell-rossen authored
256 ### Source Resource
257
258 #### `GET /rc/v1/sources/type/:partition_type`
259
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
260
929b21b update readme
lucas campbell-rossen authored
261 Rhoconnectrb::API::Sources.get_type('parition_type')
262
263 #### `GET /rc/v1/sources/:source_id`
264
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
265
266 Rhoconnectrb::API::Sources.get('source_id')
267
929b21b update readme
lucas campbell-rossen authored
268 #### `PUT /rc/v1/sources/:source_id`
269
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
270
929b21b update readme
lucas campbell-rossen authored
271 data = {:user_name=>'username',:data=>{:poll_interval=>25}}
272 Rhoconnectrb::API::Sources.put('source_id',data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
273
929b21b update readme
lucas campbell-rossen authored
274 ### Client Resource
275
276 #### `GET /rc/v1/clients/:client_id`
277
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
278
929b21b update readme
lucas campbell-rossen authored
279 Rhoconnectrb::API::Clients.get('client_id')
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
280
929b21b update readme
lucas campbell-rossen authored
281 #### `GET /rc/v1/clients/:client_id/sources/:source_id/docnames`
282
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
283
929b21b update readme
lucas campbell-rossen authored
284 Rhoconnectrb::API::Clients.get_sources_docnames(['client_id','source_id'])
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
285
929b21b update readme
lucas campbell-rossen authored
286 #### `POST /rc/v1/clients/:client_id/sources/:source_id/docnames`
287
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
288
929b21b update readme
lucas campbell-rossen authored
289 data = {:data=>data,:append=>false}
290 Rhoconnectrb::API::Clients.post_sources_docnames(['client_id','source_id'],data)
291
292 ### Resource Resource
293
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
294 The Resource class is used for API calls to user defined dynamic or source adapters. The resource name is passed in as a parameter.
929b21b update readme
lucas campbell-rossen authored
295
296 #### `POST /app/v1/:source_name/push_objects`
297
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
298
929b21b update readme
lucas campbell-rossen authored
299 data = {:user_id=>'user_id',:objects=>data}
300 Rhoconnectrb::API::Resource.post_push_objects('source_name',data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
301
929b21b update readme
lucas campbell-rossen authored
302 #### `POST /app/v1/:source_name/push_deletes`
303
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
304
929b21b update readme
lucas campbell-rossen authored
305 data = {:user_id => 'user_id',:objects=>'object_ids'}
306 Rhoconnectrb::API::Resource.post_push_deletes('source_name',data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
307
929b21b update readme
lucas campbell-rossen authored
308 #### `POST /app/v1/:source_name/fast_insert`
309
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
310
929b21b update readme
lucas campbell-rossen authored
311 data = {:user_id=>'user_id',:objects=>data}
312 Rhoconnectrb::API::Resource.post_fast_insert('source_name',data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
313
929b21b update readme
lucas campbell-rossen authored
314 #### `POST /app/v1/:source_name/fast_update`
315
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
316
929b21b update readme
lucas campbell-rossen authored
317 data = {:user_id=>'user_id',:objects=>data}
318 Rhoconnectrb::API::Resource.post_fast_update('source_name',data)
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
319
929b21b update readme
lucas campbell-rossen authored
320 #### `POST /app/v1/:source_name/fast_delete`
321
6549c2d @larsburgess Merge branch 'master' into api
larsburgess authored
322
929b21b update readme
lucas campbell-rossen authored
323 data = {:user_id=>'user_id',:objects=>data}
324 Rhoconnectrb::API::Resource.post_fast_delete('source_name',data)
325
79adaa1 @larsburgess added config docs
larsburgess authored
326
baca514 @larsburgess first readme
larsburgess authored
327 ## Meta
79adaa1 @larsburgess added config docs
larsburgess authored
328 Created and maintained by Lucas Campbell-Rossen, Vladimir Tarasov and Lars Burgess.
baca514 @larsburgess first readme
larsburgess authored
329
4212bb4 testing new commits
Lars Burgess authored
330 Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
Something went wrong with that request. Please try again.