redbooth-ruby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +237 -20
- data/lib/redbooth-ruby.rb +10 -0
- data/lib/redbooth-ruby/base.rb +1 -1
- data/lib/redbooth-ruby/client.rb +9 -2
- data/lib/redbooth-ruby/client_operations/metadata.rb +32 -0
- data/lib/redbooth-ruby/client_operations/search.rb +32 -0
- data/lib/redbooth-ruby/comment.rb +34 -0
- data/lib/redbooth-ruby/file.rb +68 -0
- data/lib/redbooth-ruby/note.rb +25 -0
- data/lib/redbooth-ruby/operations/create.rb +1 -1
- data/lib/redbooth-ruby/operations/index.rb +0 -12
- data/lib/redbooth-ruby/operations/meta.rb +33 -2
- data/lib/redbooth-ruby/operations/show.rb +1 -1
- data/lib/redbooth-ruby/request/collection.rb +37 -5
- data/lib/redbooth-ruby/request/connection.rb +14 -8
- data/lib/redbooth-ruby/request/validator.rb +32 -4
- data/lib/redbooth-ruby/subtask.rb +18 -0
- data/lib/redbooth-ruby/task.rb +1 -1
- data/lib/redbooth-ruby/version.rb +1 -1
- data/redbooth-ruby.gemspec +1 -0
- data/spec/cassettes/RedboothRuby_ClientOperations_Metadata/_metadata/.yml +55 -0
- data/spec/cassettes/RedboothRuby_ClientOperations_Metadata/_metadata/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml +55 -0
- data/spec/cassettes/RedboothRuby_ClientOperations_Search/_index/.yml +271 -0
- data/spec/cassettes/RedboothRuby_ClientOperations_Search/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml +271 -0
- data/spec/cassettes/RedboothRuby_Comment/_create/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Comment/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_comment.yml +47 -0
- data/spec/cassettes/RedboothRuby_Comment/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml +84 -0
- data/spec/cassettes/RedboothRuby_Comment/_index/.yml +94 -0
- data/spec/cassettes/RedboothRuby_Comment/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml +94 -0
- data/spec/cassettes/RedboothRuby_Comment/_initialize/.yml +65 -0
- data/spec/cassettes/RedboothRuby_Comment/_show/.yml +65 -0
- data/spec/cassettes/RedboothRuby_Comment/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_comment.yml +65 -0
- data/spec/cassettes/RedboothRuby_Comment/_update/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Comment/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_comment.yml +47 -0
- data/spec/cassettes/RedboothRuby_File/_create/.yml +65 -0
- data/spec/cassettes/RedboothRuby_File/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_file.yml +65 -0
- data/spec/cassettes/RedboothRuby_File/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_comment.yml +102 -0
- data/spec/cassettes/RedboothRuby_File/_index/.yml +58 -0
- data/spec/cassettes/RedboothRuby_File/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_comments_collection.yml +58 -0
- data/spec/cassettes/RedboothRuby_File/_initialize/.yml +44 -0
- data/spec/cassettes/RedboothRuby_File/_show/.yml +44 -0
- data/spec/cassettes/RedboothRuby_File/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_file.yml +44 -0
- data/spec/cassettes/RedboothRuby_File/_update/.yml +46 -0
- data/spec/cassettes/RedboothRuby_File/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_file.yml +46 -0
- data/spec/cassettes/RedboothRuby_Note/_create/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Note/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_note.yml +47 -0
- data/spec/cassettes/RedboothRuby_Note/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_note.yml +84 -0
- data/spec/cassettes/RedboothRuby_Note/_index/.yml +193 -0
- data/spec/cassettes/RedboothRuby_Note/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_notes_collection.yml +193 -0
- data/spec/cassettes/RedboothRuby_Note/_initialize/.yml +109 -0
- data/spec/cassettes/RedboothRuby_Note/_show/.yml +109 -0
- data/spec/cassettes/RedboothRuby_Note/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_note.yml +109 -0
- data/spec/cassettes/RedboothRuby_Note/_update/.yml +73 -0
- data/spec/cassettes/RedboothRuby_Note/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_note.yml +73 -0
- data/spec/cassettes/RedboothRuby_Subtask/_create/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Subtask/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_subtask.yml +47 -0
- data/spec/cassettes/RedboothRuby_Subtask/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_subtask.yml +84 -0
- data/spec/cassettes/RedboothRuby_Subtask/_index/.yml +99 -0
- data/spec/cassettes/RedboothRuby_Subtask/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_subtasks_collection.yml +99 -0
- data/spec/cassettes/RedboothRuby_Subtask/_initialize/.yml +45 -0
- data/spec/cassettes/RedboothRuby_Subtask/_show/.yml +45 -0
- data/spec/cassettes/RedboothRuby_Subtask/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_subtask.yml +45 -0
- data/spec/cassettes/RedboothRuby_Subtask/_update/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Subtask/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_subtask.yml +47 -0
- data/spec/cassettes/RedboothRuby_Task/_medatada/.yml +88 -0
- data/spec/cassettes/RedboothRuby_Task/_medatada/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +88 -0
- data/spec/cassettes/RedboothRuby_Task/_medatada_/.yml +90 -0
- data/spec/cassettes/RedboothRuby_Task/_medatada_/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +90 -0
- data/spec/cassettes/RedboothRuby_Task/_metadata_merge/.yml +133 -0
- data/spec/cassettes/RedboothRuby_Task/_metadata_merge/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +133 -0
- data/spec/redbooth-ruby/client_operations/metadata_spec.rb +24 -0
- data/spec/redbooth-ruby/client_operations/search_spec.rb +24 -0
- data/spec/redbooth-ruby/comment_spec.rb +87 -0
- data/spec/redbooth-ruby/file_spec.rb +89 -0
- data/spec/redbooth-ruby/note_spec.rb +84 -0
- data/spec/redbooth-ruby/subtaks_spec.rb +83 -0
- data/spec/redbooth-ruby/task_spec.rb +41 -0
- data/spec/spec_helper.rb +2 -0
- metadata +134 -2
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://localhost:3000/api/3/subtasks/2
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: name=new+test+name
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer _frank_access_token_
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- '*/*'
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
X-Ua-Compatible:
|
28
|
+
- IE=Edge,chrome=1
|
29
|
+
Etag:
|
30
|
+
- '"996f8e08922cb885c785f9baf736207e"'
|
31
|
+
Cache-Control:
|
32
|
+
- max-age=0, private, must-revalidate
|
33
|
+
X-Request-Id:
|
34
|
+
- a85d7b01346f0a29f870b5e939f8de8a
|
35
|
+
X-Runtime:
|
36
|
+
- '0.866921'
|
37
|
+
Connection:
|
38
|
+
- close
|
39
|
+
Server:
|
40
|
+
- thin 1.6.1 codename Death Proof
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"created_at":1415629595,"updated_at":1415789069,"type":"Subtask","id":2,"name":"new
|
44
|
+
test name","resolved":true,"row_order":4194304,"task_id":1}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Wed, 12 Nov 2014 10:44:29 GMT
|
47
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks/1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer _frank_access_token_
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge,chrome=1
|
27
|
+
Etag:
|
28
|
+
- '"995d617c5d5d4edaa253f4ee352507ee"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- eeb629bf9f9af045a1bc21dc73ba8bea
|
33
|
+
X-Runtime:
|
34
|
+
- '0.136503'
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
Server:
|
38
|
+
- thin 1.6.1 codename Death Proof
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"type":"Task","created_at":1415624550,"updated_at":1415629595,"id":1,"name":"Register
|
42
|
+
all EarthworksYoga TLDs","task_list_id":2,"comments_count":2,"assigned_id":8,"is_private":false,"project_id":2,"urgent":false,"user_id":3,"position":0,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":7,"resolved_subtasks_count":2,"watcher_ids":[3,4],"description":"The
|
43
|
+
ships hung in the sky in much the same way that bricks don''t.","description_html":"<p>The
|
44
|
+
ships hung in the sky in much the same way that bricks don''t.</p>","description_updated_by_user_id":3,"updated_by_id":4,"deleted":false,"row_order":0,"status":"resolved","due_on":"2014-11-11"}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 14 Nov 2014 16:39:41 GMT
|
47
|
+
- request:
|
48
|
+
method: get
|
49
|
+
uri: http://localhost:3000/api/3/metadata?target_id=1&target_type=Task
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ''
|
53
|
+
headers:
|
54
|
+
User-Agent:
|
55
|
+
- Faraday v0.9.0
|
56
|
+
Authorization:
|
57
|
+
- Bearer _frank_access_token_
|
58
|
+
Accept-Encoding:
|
59
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
60
|
+
Accept:
|
61
|
+
- '*/*'
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
Content-Type:
|
68
|
+
- application/json; charset=utf-8
|
69
|
+
X-Ua-Compatible:
|
70
|
+
- IE=Edge,chrome=1
|
71
|
+
Etag:
|
72
|
+
- '"99914b932bd37a50b983c5e7c90ae93b"'
|
73
|
+
Cache-Control:
|
74
|
+
- max-age=0, private, must-revalidate
|
75
|
+
X-Request-Id:
|
76
|
+
- a73459798fc170a304448f5231faa7d0
|
77
|
+
X-Runtime:
|
78
|
+
- '0.098553'
|
79
|
+
Connection:
|
80
|
+
- close
|
81
|
+
Server:
|
82
|
+
- thin 1.6.1 codename Death Proof
|
83
|
+
body:
|
84
|
+
encoding: UTF-8
|
85
|
+
string: '{}'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Fri, 14 Nov 2014 16:39:41 GMT
|
88
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks/1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer _frank_access_token_
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge,chrome=1
|
27
|
+
Etag:
|
28
|
+
- '"995d617c5d5d4edaa253f4ee352507ee"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- 8cd9ac18e189016f4d412e8a20816730
|
33
|
+
X-Runtime:
|
34
|
+
- '1.946992'
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
Server:
|
38
|
+
- thin 1.6.1 codename Death Proof
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"type":"Task","created_at":1415624550,"updated_at":1415629595,"id":1,"name":"Register
|
42
|
+
all EarthworksYoga TLDs","task_list_id":2,"comments_count":2,"assigned_id":8,"is_private":false,"project_id":2,"urgent":false,"user_id":3,"position":0,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":7,"resolved_subtasks_count":2,"watcher_ids":[3,4],"description":"The
|
43
|
+
ships hung in the sky in much the same way that bricks don''t.","description_html":"<p>The
|
44
|
+
ships hung in the sky in much the same way that bricks don''t.</p>","description_updated_by_user_id":3,"updated_by_id":4,"deleted":false,"row_order":0,"status":"resolved","due_on":"2014-11-11"}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 14 Nov 2014 16:39:21 GMT
|
47
|
+
- request:
|
48
|
+
method: get
|
49
|
+
uri: http://localhost:3000/api/3/metadata?target_id=1&target_type=Task
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ''
|
53
|
+
headers:
|
54
|
+
User-Agent:
|
55
|
+
- Faraday v0.9.0
|
56
|
+
Authorization:
|
57
|
+
- Bearer _frank_access_token_
|
58
|
+
Accept-Encoding:
|
59
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
60
|
+
Accept:
|
61
|
+
- '*/*'
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
Content-Type:
|
68
|
+
- application/json; charset=utf-8
|
69
|
+
X-Ua-Compatible:
|
70
|
+
- IE=Edge,chrome=1
|
71
|
+
Etag:
|
72
|
+
- '"99914b932bd37a50b983c5e7c90ae93b"'
|
73
|
+
Cache-Control:
|
74
|
+
- max-age=0, private, must-revalidate
|
75
|
+
X-Request-Id:
|
76
|
+
- 8b367c5ca6d6140c683f64b1de41922c
|
77
|
+
X-Runtime:
|
78
|
+
- '0.570085'
|
79
|
+
Connection:
|
80
|
+
- close
|
81
|
+
Server:
|
82
|
+
- thin 1.6.1 codename Death Proof
|
83
|
+
body:
|
84
|
+
encoding: UTF-8
|
85
|
+
string: '{}'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Fri, 14 Nov 2014 16:39:22 GMT
|
88
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,90 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks/1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer _frank_access_token_
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge,chrome=1
|
27
|
+
Etag:
|
28
|
+
- '"995d617c5d5d4edaa253f4ee352507ee"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- b8619e781cae32e2e5967ea12e69a707
|
33
|
+
X-Runtime:
|
34
|
+
- '0.110771'
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
Server:
|
38
|
+
- thin 1.6.1 codename Death Proof
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"type":"Task","created_at":1415624550,"updated_at":1415629595,"id":1,"name":"Register
|
42
|
+
all EarthworksYoga TLDs","task_list_id":2,"comments_count":2,"assigned_id":8,"is_private":false,"project_id":2,"urgent":false,"user_id":3,"position":0,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":7,"resolved_subtasks_count":2,"watcher_ids":[3,4],"description":"The
|
43
|
+
ships hung in the sky in much the same way that bricks don''t.","description_html":"<p>The
|
44
|
+
ships hung in the sky in much the same way that bricks don''t.</p>","description_updated_by_user_id":3,"updated_by_id":4,"deleted":false,"row_order":0,"status":"resolved","due_on":"2014-11-11"}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 14 Nov 2014 16:46:35 GMT
|
47
|
+
- request:
|
48
|
+
method: post
|
49
|
+
uri: http://localhost:3000/api/3/metadata
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: metadata%5Bnew%5D=metadata&target_id=1&target_type=Task
|
53
|
+
headers:
|
54
|
+
User-Agent:
|
55
|
+
- Faraday v0.9.0
|
56
|
+
Authorization:
|
57
|
+
- Bearer _frank_access_token_
|
58
|
+
Content-Type:
|
59
|
+
- application/x-www-form-urlencoded
|
60
|
+
Accept-Encoding:
|
61
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
+
Accept:
|
63
|
+
- '*/*'
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 201
|
67
|
+
message: Created
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json; charset=utf-8
|
71
|
+
X-Ua-Compatible:
|
72
|
+
- IE=Edge,chrome=1
|
73
|
+
Etag:
|
74
|
+
- '"ec826f49c0447c20dcd6d5af8c8c2c59"'
|
75
|
+
Cache-Control:
|
76
|
+
- max-age=0, private, must-revalidate
|
77
|
+
X-Request-Id:
|
78
|
+
- edbf46eb6a7c33d1a072047182124663
|
79
|
+
X-Runtime:
|
80
|
+
- '0.152544'
|
81
|
+
Connection:
|
82
|
+
- close
|
83
|
+
Server:
|
84
|
+
- thin 1.6.1 codename Death Proof
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: '{"new":"metadata"}'
|
88
|
+
http_version:
|
89
|
+
recorded_at: Fri, 14 Nov 2014 16:46:35 GMT
|
90
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,90 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks/1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer _frank_access_token_
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge,chrome=1
|
27
|
+
Etag:
|
28
|
+
- '"995d617c5d5d4edaa253f4ee352507ee"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- 05ef05c08f046b7aa8e0ecd3503b1a8d
|
33
|
+
X-Runtime:
|
34
|
+
- '0.219087'
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
Server:
|
38
|
+
- thin 1.6.1 codename Death Proof
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"type":"Task","created_at":1415624550,"updated_at":1415629595,"id":1,"name":"Register
|
42
|
+
all EarthworksYoga TLDs","task_list_id":2,"comments_count":2,"assigned_id":8,"is_private":false,"project_id":2,"urgent":false,"user_id":3,"position":0,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":7,"resolved_subtasks_count":2,"watcher_ids":[3,4],"description":"The
|
43
|
+
ships hung in the sky in much the same way that bricks don''t.","description_html":"<p>The
|
44
|
+
ships hung in the sky in much the same way that bricks don''t.</p>","description_updated_by_user_id":3,"updated_by_id":4,"deleted":false,"row_order":0,"status":"resolved","due_on":"2014-11-11"}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 14 Nov 2014 16:46:35 GMT
|
47
|
+
- request:
|
48
|
+
method: post
|
49
|
+
uri: http://localhost:3000/api/3/metadata
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: metadata%5Bnew%5D=metadata&target_id=1&target_type=Task
|
53
|
+
headers:
|
54
|
+
User-Agent:
|
55
|
+
- Faraday v0.9.0
|
56
|
+
Authorization:
|
57
|
+
- Bearer _frank_access_token_
|
58
|
+
Content-Type:
|
59
|
+
- application/x-www-form-urlencoded
|
60
|
+
Accept-Encoding:
|
61
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
+
Accept:
|
63
|
+
- '*/*'
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 201
|
67
|
+
message: Created
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json; charset=utf-8
|
71
|
+
X-Ua-Compatible:
|
72
|
+
- IE=Edge,chrome=1
|
73
|
+
Etag:
|
74
|
+
- '"ec826f49c0447c20dcd6d5af8c8c2c59"'
|
75
|
+
Cache-Control:
|
76
|
+
- max-age=0, private, must-revalidate
|
77
|
+
X-Request-Id:
|
78
|
+
- 32cf198a512f9522e47fa35be424bcb3
|
79
|
+
X-Runtime:
|
80
|
+
- '0.107340'
|
81
|
+
Connection:
|
82
|
+
- close
|
83
|
+
Server:
|
84
|
+
- thin 1.6.1 codename Death Proof
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: '{"new":"metadata"}'
|
88
|
+
http_version:
|
89
|
+
recorded_at: Fri, 14 Nov 2014 16:47:14 GMT
|
90
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,133 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks/1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer _frank_access_token_
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge,chrome=1
|
27
|
+
Etag:
|
28
|
+
- '"995d617c5d5d4edaa253f4ee352507ee"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- b8d6fd1b7a21c381f158d96052591fab
|
33
|
+
X-Runtime:
|
34
|
+
- '0.122754'
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
Server:
|
38
|
+
- thin 1.6.1 codename Death Proof
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"type":"Task","created_at":1415624550,"updated_at":1415629595,"id":1,"name":"Register
|
42
|
+
all EarthworksYoga TLDs","task_list_id":2,"comments_count":2,"assigned_id":8,"is_private":false,"project_id":2,"urgent":false,"user_id":3,"position":0,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":7,"resolved_subtasks_count":2,"watcher_ids":[3,4],"description":"The
|
43
|
+
ships hung in the sky in much the same way that bricks don''t.","description_html":"<p>The
|
44
|
+
ships hung in the sky in much the same way that bricks don''t.</p>","description_updated_by_user_id":3,"updated_by_id":4,"deleted":false,"row_order":0,"status":"resolved","due_on":"2014-11-11"}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Fri, 14 Nov 2014 16:50:32 GMT
|
47
|
+
- request:
|
48
|
+
method: post
|
49
|
+
uri: http://localhost:3000/api/3/metadata
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: metadata%5Bnew%5D=metadata&metadata%5Bother%5D=value&target_id=1&target_type=Task
|
53
|
+
headers:
|
54
|
+
User-Agent:
|
55
|
+
- Faraday v0.9.0
|
56
|
+
Authorization:
|
57
|
+
- Bearer _frank_access_token_
|
58
|
+
Content-Type:
|
59
|
+
- application/x-www-form-urlencoded
|
60
|
+
Accept-Encoding:
|
61
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
+
Accept:
|
63
|
+
- '*/*'
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 201
|
67
|
+
message: Created
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json; charset=utf-8
|
71
|
+
X-Ua-Compatible:
|
72
|
+
- IE=Edge,chrome=1
|
73
|
+
Etag:
|
74
|
+
- '"eb591be1adacc68e1b6631375add1186"'
|
75
|
+
Cache-Control:
|
76
|
+
- max-age=0, private, must-revalidate
|
77
|
+
X-Request-Id:
|
78
|
+
- d6ad2b5aca6bf50bdef01e542d2a2ed7
|
79
|
+
X-Runtime:
|
80
|
+
- '0.110821'
|
81
|
+
Connection:
|
82
|
+
- close
|
83
|
+
Server:
|
84
|
+
- thin 1.6.1 codename Death Proof
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: '{"new":"metadata","other":"value"}'
|
88
|
+
http_version:
|
89
|
+
recorded_at: Fri, 14 Nov 2014 16:50:32 GMT
|
90
|
+
- request:
|
91
|
+
method: put
|
92
|
+
uri: http://localhost:3000/api/3/metadata
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: metadata%5Bother%5D=updated_value&target_id=1&target_type=Task
|
96
|
+
headers:
|
97
|
+
User-Agent:
|
98
|
+
- Faraday v0.9.0
|
99
|
+
Authorization:
|
100
|
+
- Bearer _frank_access_token_
|
101
|
+
Content-Type:
|
102
|
+
- application/x-www-form-urlencoded
|
103
|
+
Accept-Encoding:
|
104
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
105
|
+
Accept:
|
106
|
+
- '*/*'
|
107
|
+
response:
|
108
|
+
status:
|
109
|
+
code: 200
|
110
|
+
message: OK
|
111
|
+
headers:
|
112
|
+
Content-Type:
|
113
|
+
- application/json; charset=utf-8
|
114
|
+
X-Ua-Compatible:
|
115
|
+
- IE=Edge,chrome=1
|
116
|
+
Etag:
|
117
|
+
- '"c494d65897a7ed4d58f1da02d0b2c447"'
|
118
|
+
Cache-Control:
|
119
|
+
- max-age=0, private, must-revalidate
|
120
|
+
X-Request-Id:
|
121
|
+
- 0619c99a489f9c1546ad09de3f40ea54
|
122
|
+
X-Runtime:
|
123
|
+
- '0.129723'
|
124
|
+
Connection:
|
125
|
+
- close
|
126
|
+
Server:
|
127
|
+
- thin 1.6.1 codename Death Proof
|
128
|
+
body:
|
129
|
+
encoding: UTF-8
|
130
|
+
string: '{"new":"metadata","other":"updated_value"}'
|
131
|
+
http_version:
|
132
|
+
recorded_at: Fri, 14 Nov 2014 16:50:32 GMT
|
133
|
+
recorded_with: VCR 2.9.3
|