redbooth-ruby 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/spec/cassettes/RedboothRuby_Conversation/_create/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Conversation/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_conversation.yml +47 -0
- data/spec/cassettes/RedboothRuby_Conversation/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_conversation.yml +84 -0
- data/spec/cassettes/RedboothRuby_Conversation/_index/.yml +99 -0
- data/spec/cassettes/RedboothRuby_Conversation/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_conversations_collection.yml +99 -0
- data/spec/cassettes/RedboothRuby_Conversation/_initialize/.yml +45 -0
- data/spec/cassettes/RedboothRuby_Conversation/_show/.yml +45 -0
- data/spec/cassettes/RedboothRuby_Conversation/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml +45 -0
- data/spec/cassettes/RedboothRuby_Conversation/_update/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Conversation/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml +47 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +0 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_update/integration/.yml +0 -0
- data/spec/cassettes/RedboothRuby_Membership/_create/integration/.yml +83 -0
- data/spec/cassettes/RedboothRuby_Membership/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_membership.yml +83 -0
- data/spec/cassettes/RedboothRuby_Membership/_index/.yml +58 -0
- data/spec/cassettes/RedboothRuby_Membership/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +58 -0
- data/spec/cassettes/RedboothRuby_Membership/_initialize/.yml +44 -0
- data/spec/cassettes/RedboothRuby_Membership/_show/.yml +44 -0
- data/spec/cassettes/RedboothRuby_Membership/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +44 -0
- data/spec/cassettes/RedboothRuby_Membership/_update/.yml +46 -0
- data/spec/cassettes/RedboothRuby_Membership/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +46 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_create/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_create/integration/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_create/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_all/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_count/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_current_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_current_page/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/where_is_the_last_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_per_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_per_page/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/where_is_the_first_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_total_pages/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_total_pages/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_create/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_assigned_id.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_id.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_name.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_project_id.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/name/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/project_id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/task_list_id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/class/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/assigned_id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/description/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/due_on/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/initializes_all_attributes_correctly.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/name/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/project_id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_assigned_id.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_id.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_name.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_project_id.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_email.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_first_name.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_id.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_last_name.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/name/.yml +0 -0
- data/spec/{redbooth → redbooth-ruby}/base_spec.rb +2 -2
- data/spec/{redbooth → redbooth-ruby}/client_spec.rb +11 -11
- data/spec/redbooth-ruby/conversation_spec.rb +83 -0
- data/spec/{redbooth → redbooth-ruby}/me_spec.rb +4 -4
- data/spec/redbooth-ruby/membership_spec.rb +85 -0
- data/spec/{redbooth → redbooth-ruby}/organization_spec.rb +8 -8
- data/spec/{redbooth → redbooth-ruby}/person_spec.rb +7 -7
- data/spec/{redbooth → redbooth-ruby}/project_spec.rb +8 -8
- data/spec/{redbooth → redbooth-ruby}/request/base_spec.rb +9 -9
- data/spec/{redbooth → redbooth-ruby}/request/collection_spec.rb +7 -7
- data/spec/{redbooth → redbooth-ruby}/request/connection_spec.rb +10 -10
- data/spec/{redbooth → redbooth-ruby}/request/info_spec.rb +4 -4
- data/spec/{redbooth → redbooth-ruby}/request/response_spec.rb +3 -3
- data/spec/{redbooth → redbooth-ruby}/request/validator_spec.rb +9 -9
- data/spec/{redbooth → redbooth-ruby}/task_spec.rb +12 -12
- data/spec/{redbooth → redbooth-ruby}/user_spec.rb +4 -4
- data/spec/redbooth_spec.rb +12 -12
- data/spec/shared/authentication_context.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- metadata +264 -222
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/conversations/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
|
+
- '"f3515bd5311f81c2c959818c74932bda"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- 2f7a52050731497782727de52cb21a7b
|
33
|
+
X-Runtime:
|
34
|
+
- '0.240290'
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
Server:
|
38
|
+
- thin 1.6.1 codename Death Proof
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"type":"Conversation","created_at":1415622030,"updated_at":1415629593,"id":1,"name":"Project
|
42
|
+
Welcome","project_id":2,"user_id":1,"comments_count":3,"is_private":false,"last_activity_id":null}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Mon, 10 Nov 2014 15:40:37 GMT
|
45
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://localhost:3000/api/3/conversations/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
|
+
- '"eb0388b0395ff46f1b8dfae156798eaa"'
|
31
|
+
Cache-Control:
|
32
|
+
- max-age=0, private, must-revalidate
|
33
|
+
X-Request-Id:
|
34
|
+
- cb5f8b5c2d9b0d24dc886abfeed75c4c
|
35
|
+
X-Runtime:
|
36
|
+
- '0.624188'
|
37
|
+
Connection:
|
38
|
+
- close
|
39
|
+
Server:
|
40
|
+
- thin 1.6.1 codename Death Proof
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"type":"Conversation","created_at":1415622390,"updated_at":1415633994,"id":2,"name":"new
|
44
|
+
test name","project_id":2,"user_id":2,"comments_count":5,"is_private":false,"last_activity_id":null}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Mon, 10 Nov 2014 15:39:54 GMT
|
47
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://localhost:3000/api/3/conversations/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
|
+
- '"eb0388b0395ff46f1b8dfae156798eaa"'
|
31
|
+
Cache-Control:
|
32
|
+
- max-age=0, private, must-revalidate
|
33
|
+
X-Request-Id:
|
34
|
+
- 5bf34a44ebcf7b527c8185e38b7daea5
|
35
|
+
X-Runtime:
|
36
|
+
- '7.976789'
|
37
|
+
Connection:
|
38
|
+
- close
|
39
|
+
Server:
|
40
|
+
- thin 1.6.1 codename Death Proof
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"type":"Conversation","created_at":1415622390,"updated_at":1415633994,"id":2,"name":"new
|
44
|
+
test name","project_id":2,"user_id":2,"comments_count":5,"is_private":false,"last_activity_id":null}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Mon, 10 Nov 2014 15:39:54 GMT
|
47
|
+
recorded_with: VCR 2.9.3
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/3/memberships
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: organization_id=1&role=participant&user_id=3
|
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: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
X-Ua-Compatible:
|
28
|
+
- IE=Edge,chrome=1
|
29
|
+
Etag:
|
30
|
+
- '"c43d4811513a60f239d4e37cc1a6b672"'
|
31
|
+
Cache-Control:
|
32
|
+
- max-age=0, private, must-revalidate
|
33
|
+
X-Request-Id:
|
34
|
+
- e7d7b1be74738262b904a167b2d8de23
|
35
|
+
X-Runtime:
|
36
|
+
- '0.772512'
|
37
|
+
Connection:
|
38
|
+
- close
|
39
|
+
Server:
|
40
|
+
- thin 1.6.1 codename Death Proof
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"type":"Membership","id":3,"user_id":3,"organization_id":1,"role":"participant"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Mon, 10 Nov 2014 14:53:00 GMT
|
46
|
+
- request:
|
47
|
+
method: delete
|
48
|
+
uri: http://localhost:3000/api/3/memberships/3
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
User-Agent:
|
54
|
+
- Faraday v0.9.0
|
55
|
+
Authorization:
|
56
|
+
- Bearer _frank_access_token_
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- '*/*'
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 204
|
64
|
+
message: No Content
|
65
|
+
headers:
|
66
|
+
X-Ua-Compatible:
|
67
|
+
- IE=Edge,chrome=1
|
68
|
+
Cache-Control:
|
69
|
+
- no-cache
|
70
|
+
X-Request-Id:
|
71
|
+
- eda20c5053aa79ec299252f9e94f58db
|
72
|
+
X-Runtime:
|
73
|
+
- '12.424863'
|
74
|
+
Connection:
|
75
|
+
- close
|
76
|
+
Server:
|
77
|
+
- thin 1.6.1 codename Death Proof
|
78
|
+
body:
|
79
|
+
encoding: UTF-8
|
80
|
+
string: ''
|
81
|
+
http_version:
|
82
|
+
recorded_at: Mon, 10 Nov 2014 14:53:12 GMT
|
83
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/3/memberships
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: organization_id=1&role=participant&user_id=3
|
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: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
X-Ua-Compatible:
|
28
|
+
- IE=Edge,chrome=1
|
29
|
+
Etag:
|
30
|
+
- '"c43d4811513a60f239d4e37cc1a6b672"'
|
31
|
+
Cache-Control:
|
32
|
+
- max-age=0, private, must-revalidate
|
33
|
+
X-Request-Id:
|
34
|
+
- 5c9119100d63736951eed1dc33540d6a
|
35
|
+
X-Runtime:
|
36
|
+
- '7.106531'
|
37
|
+
Connection:
|
38
|
+
- close
|
39
|
+
Server:
|
40
|
+
- thin 1.6.1 codename Death Proof
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"type":"Membership","id":3,"user_id":3,"organization_id":1,"role":"participant"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Mon, 10 Nov 2014 14:54:07 GMT
|
46
|
+
- request:
|
47
|
+
method: delete
|
48
|
+
uri: http://localhost:3000/api/3/memberships/3
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
User-Agent:
|
54
|
+
- Faraday v0.9.0
|
55
|
+
Authorization:
|
56
|
+
- Bearer _frank_access_token_
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- '*/*'
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 204
|
64
|
+
message: No Content
|
65
|
+
headers:
|
66
|
+
X-Ua-Compatible:
|
67
|
+
- IE=Edge,chrome=1
|
68
|
+
Cache-Control:
|
69
|
+
- no-cache
|
70
|
+
X-Request-Id:
|
71
|
+
- 8e6cef7096b211bcbe0c0e33c203d224
|
72
|
+
X-Runtime:
|
73
|
+
- '0.368557'
|
74
|
+
Connection:
|
75
|
+
- close
|
76
|
+
Server:
|
77
|
+
- thin 1.6.1 codename Death Proof
|
78
|
+
body:
|
79
|
+
encoding: UTF-8
|
80
|
+
string: ''
|
81
|
+
http_version:
|
82
|
+
recorded_at: Mon, 10 Nov 2014 14:54:08 GMT
|
83
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/memberships
|
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
|
+
Last-Modified:
|
24
|
+
- Mon, 10 Nov 2014 12:39:01 GMT
|
25
|
+
Paginationlinks:
|
26
|
+
- <http://localhost:3000/api/3/memberships?page=1>; rel="last">
|
27
|
+
Paginationtotalpages:
|
28
|
+
- '1'
|
29
|
+
Paginationperpage:
|
30
|
+
- '30'
|
31
|
+
Paginationcurrentpage:
|
32
|
+
- '1'
|
33
|
+
Paginationtotalobjects:
|
34
|
+
- '7'
|
35
|
+
X-Redbooth-Updated-At:
|
36
|
+
- '1415623141491'
|
37
|
+
X-Redbooth-From-Cache:
|
38
|
+
- 'false'
|
39
|
+
Content-Type:
|
40
|
+
- application/json; charset=utf-8
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
X-Ua-Compatible:
|
44
|
+
- IE=Edge,chrome=1
|
45
|
+
X-Request-Id:
|
46
|
+
- a9f4c733a85c7da7a880cd2b6997dab8
|
47
|
+
X-Runtime:
|
48
|
+
- '0.151507'
|
49
|
+
Connection:
|
50
|
+
- close
|
51
|
+
Server:
|
52
|
+
- thin 1.6.1 codename Death Proof
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '[{"type":"Membership","id":7,"user_id":4,"organization_id":2,"role":"participant"},{"type":"Membership","id":6,"user_id":1,"organization_id":2,"role":"admin"},{"type":"Membership","id":5,"user_id":7,"organization_id":2,"role":"admin"},{"type":"Membership","id":4,"user_id":4,"organization_id":1,"role":"participant"},{"type":"Membership","id":3,"user_id":3,"organization_id":1,"role":"participant"},{"type":"Membership","id":2,"user_id":2,"organization_id":1,"role":"admin"},{"type":"Membership","id":1,"user_id":1,"organization_id":1,"role":"admin"}]'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Mon, 10 Nov 2014 12:39:01 GMT
|
58
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/memberships
|
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
|
+
Last-Modified:
|
24
|
+
- Mon, 10 Nov 2014 12:40:22 GMT
|
25
|
+
Paginationlinks:
|
26
|
+
- <http://localhost:3000/api/3/memberships?page=1>; rel="last">
|
27
|
+
Paginationtotalpages:
|
28
|
+
- '1'
|
29
|
+
Paginationperpage:
|
30
|
+
- '30'
|
31
|
+
Paginationcurrentpage:
|
32
|
+
- '1'
|
33
|
+
Paginationtotalobjects:
|
34
|
+
- '7'
|
35
|
+
X-Redbooth-Updated-At:
|
36
|
+
- '1415623222766'
|
37
|
+
X-Redbooth-From-Cache:
|
38
|
+
- 'false'
|
39
|
+
Content-Type:
|
40
|
+
- application/json; charset=utf-8
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
X-Ua-Compatible:
|
44
|
+
- IE=Edge,chrome=1
|
45
|
+
X-Request-Id:
|
46
|
+
- 54363c886f0db59a3c84364885c09317
|
47
|
+
X-Runtime:
|
48
|
+
- '0.119833'
|
49
|
+
Connection:
|
50
|
+
- close
|
51
|
+
Server:
|
52
|
+
- thin 1.6.1 codename Death Proof
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '[{"type":"Membership","id":7,"user_id":4,"organization_id":2,"role":"participant"},{"type":"Membership","id":6,"user_id":1,"organization_id":2,"role":"admin"},{"type":"Membership","id":5,"user_id":7,"organization_id":2,"role":"admin"},{"type":"Membership","id":4,"user_id":4,"organization_id":1,"role":"participant"},{"type":"Membership","id":3,"user_id":3,"organization_id":1,"role":"participant"},{"type":"Membership","id":2,"user_id":2,"organization_id":1,"role":"admin"},{"type":"Membership","id":1,"user_id":1,"organization_id":1,"role":"admin"}]'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Mon, 10 Nov 2014 12:40:22 GMT
|
58
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/memberships/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
|
+
- '"e29a6be8cb28645d926c60197da1b4f5"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- 67c926d001b35a9185e9598b10b7aad3
|
33
|
+
X-Runtime:
|
34
|
+
- '1.618933'
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
Server:
|
38
|
+
- thin 1.6.1 codename Death Proof
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"type":"Membership","id":1,"user_id":1,"organization_id":1,"role":"admin"}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 10 Nov 2014 12:38:46 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|