code42 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/code42.rb +1 -0
- data/lib/code42/api/role.rb +30 -0
- data/lib/code42/api/user.rb +7 -0
- data/lib/code42/attribute_serializer.rb +1 -1
- data/lib/code42/client.rb +1 -1
- data/lib/code42/permission.rb +13 -0
- data/lib/code42/resource.rb +3 -2
- data/lib/code42/role.rb +8 -1
- data/lib/code42/role_collection.rb +4 -0
- data/lib/code42/user.rb +10 -0
- data/lib/code42/version.rb +1 -1
- data/spec/cassettes/Code42_Client/_create_org/returns_created_org.yml +7 -41
- data/spec/cassettes/Code42_Client/_create_role/creates_a_role.yml +42 -0
- data/spec/cassettes/Code42_Client/_create_user/returns_created_user.yml +8 -32
- data/spec/cassettes/Code42_Client/_create_user/when_sending_an_invalid_email/raises_an_exception.yml +8 -7
- data/spec/cassettes/Code42_Client/_deactivate_org/puts_to_the_correct_route.yml +6 -8
- data/spec/cassettes/Code42_Client/_delete_role/deletes_a_role.yml +67 -0
- data/spec/cassettes/Code42_Client/_find_org_by_name/returns_the_org_with_the_specified_name.yml +9 -44
- data/spec/cassettes/Code42_Client/_get_token/returns_valid_tokens.yml +9 -17
- data/spec/cassettes/Code42_Client/_get_token/when_providing_invalid_credentials/should_raise_an_exception.yml +6 -5
- data/spec/cassettes/Code42_Client/_org/when_ID_is_not_passed/returns_my_org.yml +7 -41
- data/spec/cassettes/Code42_Client/_org/when_ID_is_passed_in/returns_a_specific_org.yml +7 -41
- data/spec/cassettes/Code42_Client/_permissions/returns_an_enumerable_of_permissions.yml +120 -0
- data/spec/cassettes/Code42_Client/_ping/returns_a_ping.yml +9 -14
- data/spec/cassettes/Code42_Client/_reset_password/when_sending_a_user_id/as_a_string/behaves_like_reset_password/is_successful.yml +41 -3
- data/spec/cassettes/Code42_Client/_reset_password/when_sending_a_user_id/as_an_integer/behaves_like_reset_password/is_successful.yml +41 -3
- data/spec/cassettes/Code42_Client/_reset_password/when_sending_a_username/behaves_like_reset_password/is_successful.yml +41 -3
- data/spec/cassettes/Code42_Client/_reset_password/when_sending_a_view_url/behaves_like_reset_password/is_successful.yml +41 -3
- data/spec/cassettes/Code42_Client/_roles/returns_an_enumerable.yml +243 -0
- data/spec/cassettes/Code42_Client/_unassign_role/removes_the_role.yml +107 -0
- data/spec/cassettes/Code42_Client/_update_role/updates_a_role.yml +155 -0
- data/spec/cassettes/Code42_Client/_update_user/returns_the_updated_user.yml +14 -12
- data/spec/cassettes/Code42_Client/_update_user/when_sending_an_invalid_email/raises_an_exception.yml +11 -10
- data/spec/cassettes/Code42_Client/_user/when_ID_is_not_passed/returns_my_user.yml +7 -32
- data/spec/cassettes/Code42_Client/_user/when_ID_is_passed_in/returns_a_specific_user.yml +8 -32
- data/spec/cassettes/Code42_Client/_user/when_blocked/returns_the_blocked_status.yml +15 -39
- data/spec/cassettes/Code42_Client/_user/when_unblocked/returns_the_blocked_status.yml +17 -38
- data/spec/cassettes/Code42_Client/_user_roles/returns_an_enumerable.yml +7 -19
- data/spec/cassettes/Code42_Client/_validate_token/returns_a_valid_response.yml +18 -34
- data/spec/code42/client_spec.rb +57 -2
- metadata +15 -2
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://admin:admin@localhost:4280/api/userRole/4
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://localhost:4280/api/v1/userRole/4
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Server:
|
32
|
+
- Jetty(7.6.15.v20140411)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"metadata":{"timestamp":"2014-07-09T15:12:39.105-05:00","params":{}},"data":[{"roleId":3,"roleName":"PROe
|
36
|
+
User","locked":true,"creationDate":"2014-07-09T14:36:15.052-05:00","modificationDate":"2014-07-09T14:36:15.052-05:00","permissions":[{"permission":"admin.console.login"},{"permission":"admin.cpp.login"}]}]}'
|
37
|
+
http_version:
|
38
|
+
recorded_at: Wed, 09 Jul 2014 20:12:39 GMT
|
39
|
+
- request:
|
40
|
+
method: delete
|
41
|
+
uri: http://admin:admin@localhost:4280/api/UserRole?roleName=PROe%20User&userId=4
|
42
|
+
body:
|
43
|
+
encoding: US-ASCII
|
44
|
+
string: ''
|
45
|
+
headers:
|
46
|
+
User-Agent:
|
47
|
+
- Faraday v0.9.0
|
48
|
+
Accept-Encoding:
|
49
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
50
|
+
Accept:
|
51
|
+
- '*/*'
|
52
|
+
response:
|
53
|
+
status:
|
54
|
+
code: 204
|
55
|
+
message: No Content
|
56
|
+
headers:
|
57
|
+
Cache-Control:
|
58
|
+
- no-store
|
59
|
+
Pragma:
|
60
|
+
- no-cache
|
61
|
+
Content-Location:
|
62
|
+
- http://localhost:4280/api/v1/UserRole?roleName=PROe+User&userId=4
|
63
|
+
Content-Type:
|
64
|
+
- application/json
|
65
|
+
Server:
|
66
|
+
- Jetty(7.6.15.v20140411)
|
67
|
+
body:
|
68
|
+
encoding: UTF-8
|
69
|
+
string: ''
|
70
|
+
http_version:
|
71
|
+
recorded_at: Wed, 09 Jul 2014 20:15:53 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: http://admin:admin@localhost:4280/api/userRole/4
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
78
|
+
headers:
|
79
|
+
User-Agent:
|
80
|
+
- Faraday v0.9.0
|
81
|
+
Accept-Encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
Accept:
|
84
|
+
- '*/*'
|
85
|
+
response:
|
86
|
+
status:
|
87
|
+
code: 200
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
Cache-Control:
|
91
|
+
- no-store
|
92
|
+
Pragma:
|
93
|
+
- no-cache
|
94
|
+
Content-Location:
|
95
|
+
- http://localhost:4280/api/v1/userRole/4
|
96
|
+
Content-Type:
|
97
|
+
- application/json;charset=UTF-8
|
98
|
+
Content-Length:
|
99
|
+
- '80'
|
100
|
+
Server:
|
101
|
+
- Jetty(7.6.15.v20140411)
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: '{"metadata":{"timestamp":"2014-07-09T15:15:53.248-05:00","params":{}},"data":[]}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Wed, 09 Jul 2014 20:15:53 GMT
|
107
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,155 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://admin:admin@localhost:4280/api/role/57
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"roleName":"New name"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
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: 500
|
21
|
+
message: '[{"name":"LOCKED_ROLE","description":"com.code42.core.CommandException","objects":[]}]'
|
22
|
+
headers:
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://localhost:4280/api/v1/role/57
|
27
|
+
Content-Type:
|
28
|
+
- text/html;charset=ISO-8859-1
|
29
|
+
Cache-Control:
|
30
|
+
- must-revalidate,no-cache,no-store
|
31
|
+
Content-Length:
|
32
|
+
- '86'
|
33
|
+
Server:
|
34
|
+
- Jetty(7.6.3.v20120416)
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '[{"name":"LOCKED_ROLE","description":"com.code42.core.CommandException","objects":[]}]'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Wed, 09 Jul 2014 15:53:17 GMT
|
40
|
+
- request:
|
41
|
+
method: post
|
42
|
+
uri: http://admin:admin@localhost:4280/api/role
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"roleName":"A role","permissions":[]}'
|
46
|
+
headers:
|
47
|
+
User-Agent:
|
48
|
+
- Faraday v0.9.0
|
49
|
+
Content-Type:
|
50
|
+
- application/json
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- '*/*'
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 500
|
58
|
+
message: '[{"name":"PERMISSIONS_MISSING","description":"com.code42.core.CommandException","objects":[]}]'
|
59
|
+
headers:
|
60
|
+
Pragma:
|
61
|
+
- no-cache
|
62
|
+
Content-Location:
|
63
|
+
- http://localhost:4280/api/v1/role
|
64
|
+
Content-Type:
|
65
|
+
- text/html;charset=ISO-8859-1
|
66
|
+
Cache-Control:
|
67
|
+
- must-revalidate,no-cache,no-store
|
68
|
+
Content-Length:
|
69
|
+
- '94'
|
70
|
+
Server:
|
71
|
+
- Jetty(7.6.3.v20120416)
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '[{"name":"PERMISSIONS_MISSING","description":"com.code42.core.CommandException","objects":[]}]'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Wed, 09 Jul 2014 15:57:58 GMT
|
77
|
+
- request:
|
78
|
+
method: post
|
79
|
+
uri: http://admin:admin@localhost:4280/api/role
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '{"roleName":"A role","permissions":["admin.user.read"]}'
|
83
|
+
headers:
|
84
|
+
User-Agent:
|
85
|
+
- Faraday v0.9.0
|
86
|
+
Content-Type:
|
87
|
+
- application/json
|
88
|
+
Accept-Encoding:
|
89
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
90
|
+
Accept:
|
91
|
+
- '*/*'
|
92
|
+
response:
|
93
|
+
status:
|
94
|
+
code: 200
|
95
|
+
message: OK
|
96
|
+
headers:
|
97
|
+
Cache-Control:
|
98
|
+
- no-store
|
99
|
+
Pragma:
|
100
|
+
- no-cache
|
101
|
+
Content-Location:
|
102
|
+
- http://localhost:4280/api/v1/role
|
103
|
+
Content-Type:
|
104
|
+
- application/json;charset=UTF-8
|
105
|
+
Transfer-Encoding:
|
106
|
+
- chunked
|
107
|
+
Server:
|
108
|
+
- Jetty(7.6.3.v20120416)
|
109
|
+
body:
|
110
|
+
encoding: UTF-8
|
111
|
+
string: '{"metadata":{"timestamp":"2014-07-09T10:58:07.879-05:00","params":{}},"data":{"roleId":63,"roleName":"A
|
112
|
+
role","locked":false,"numberOfUsers":0,"creationDate":"2014-07-09T10:58:07.872-05:00","modificationDate":"2014-07-09T10:58:07.872-05:00","permissions":[{"permission":"admin.user.read","description":"Permission
|
113
|
+
to view user information"}]}}'
|
114
|
+
http_version:
|
115
|
+
recorded_at: Wed, 09 Jul 2014 15:58:07 GMT
|
116
|
+
- request:
|
117
|
+
method: put
|
118
|
+
uri: http://admin:admin@localhost:4280/api/role/63
|
119
|
+
body:
|
120
|
+
encoding: UTF-8
|
121
|
+
string: '{"roleName":"New name"}'
|
122
|
+
headers:
|
123
|
+
User-Agent:
|
124
|
+
- Faraday v0.9.0
|
125
|
+
Content-Type:
|
126
|
+
- application/json
|
127
|
+
Accept-Encoding:
|
128
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
129
|
+
Accept:
|
130
|
+
- '*/*'
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 200
|
134
|
+
message: OK
|
135
|
+
headers:
|
136
|
+
Cache-Control:
|
137
|
+
- no-store
|
138
|
+
Pragma:
|
139
|
+
- no-cache
|
140
|
+
Content-Location:
|
141
|
+
- http://localhost:4280/api/v1/role/63
|
142
|
+
Content-Type:
|
143
|
+
- application/json;charset=UTF-8
|
144
|
+
Transfer-Encoding:
|
145
|
+
- chunked
|
146
|
+
Server:
|
147
|
+
- Jetty(7.6.3.v20120416)
|
148
|
+
body:
|
149
|
+
encoding: UTF-8
|
150
|
+
string: '{"metadata":{"timestamp":"2014-07-09T10:58:40.201-05:00","params":{}},"data":{"roleId":63,"roleName":"New
|
151
|
+
name","locked":false,"numberOfUsers":0,"creationDate":"2014-07-09T10:58:07.872-05:00","modificationDate":"2014-07-09T10:58:40.193-05:00","permissions":[{"permission":"admin.user.read","description":"Permission
|
152
|
+
to view user information"}]}}'
|
153
|
+
http_version:
|
154
|
+
recorded_at: Wed, 09 Jul 2014 15:58:40 GMT
|
155
|
+
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://admin:admin@localhost:
|
5
|
+
uri: http://admin:admin@localhost:4280/api/user
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"orgId":2,"username":"testuser"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.9.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept-Encoding:
|
@@ -25,27 +25,28 @@ http_interactions:
|
|
25
25
|
Pragma:
|
26
26
|
- no-cache
|
27
27
|
Content-Location:
|
28
|
-
- http://localhost:
|
28
|
+
- http://localhost:4280/api/v1/user
|
29
29
|
Content-Type:
|
30
|
-
- application/json;
|
30
|
+
- application/json;charset=UTF-8
|
31
31
|
Transfer-Encoding:
|
32
32
|
- chunked
|
33
33
|
Server:
|
34
34
|
- Jetty(7.6.3.v20120416)
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"metadata":{"timestamp":"2014-
|
37
|
+
string: '{"metadata":{"timestamp":"2014-07-09T10:34:44.315-05:00","params":{}},"data":{"userId":38,"userUid":"7a1c8ea53caabfe3","status":"Active","username":"testuser","email":null,"firstName":null,"lastName":"Jenkins","quotaInBytes":-1,"orgId":2,"orgUid":"proserverdemo","orgName":"PROServer
|
38
|
+
Demo","active":true,"blocked":false,"emailPromo":true,"invited":true,"orgType":"ENTERPRISE","usernameIsAnEmail":null,"creationDate":"2014-07-09T10:27:12.465-05:00","modificationDate":"2014-07-09T10:34:44.302-05:00","passwordReset":false}}'
|
38
39
|
http_version:
|
39
|
-
recorded_at: Wed,
|
40
|
+
recorded_at: Wed, 09 Jul 2014 15:34:44 GMT
|
40
41
|
- request:
|
41
42
|
method: put
|
42
|
-
uri: http://admin:admin@localhost:
|
43
|
+
uri: http://admin:admin@localhost:4280/api/user/38
|
43
44
|
body:
|
44
45
|
encoding: UTF-8
|
45
46
|
string: '{"lastName":"Jenkins"}'
|
46
47
|
headers:
|
47
48
|
User-Agent:
|
48
|
-
- Faraday v0.
|
49
|
+
- Faraday v0.9.0
|
49
50
|
Content-Type:
|
50
51
|
- application/json
|
51
52
|
Accept-Encoding:
|
@@ -62,16 +63,17 @@ http_interactions:
|
|
62
63
|
Pragma:
|
63
64
|
- no-cache
|
64
65
|
Content-Location:
|
65
|
-
- http://localhost:
|
66
|
+
- http://localhost:4280/api/v1/user/38
|
66
67
|
Content-Type:
|
67
|
-
- application/json;
|
68
|
+
- application/json;charset=UTF-8
|
68
69
|
Transfer-Encoding:
|
69
70
|
- chunked
|
70
71
|
Server:
|
71
72
|
- Jetty(7.6.3.v20120416)
|
72
73
|
body:
|
73
74
|
encoding: UTF-8
|
74
|
-
string: '{"metadata":{"timestamp":"2014-
|
75
|
+
string: '{"metadata":{"timestamp":"2014-07-09T10:34:44.352-05:00","params":{}},"data":{"userId":38,"userUid":"7a1c8ea53caabfe3","status":"Active","username":"testuser","email":null,"firstName":null,"lastName":"Jenkins","quotaInBytes":-1,"orgId":2,"orgUid":"proserverdemo","orgName":"PROServer
|
76
|
+
Demo","active":true,"blocked":false,"emailPromo":true,"invited":true,"orgType":"ENTERPRISE","usernameIsAnEmail":null,"creationDate":"2014-07-09T10:27:12.465-05:00","modificationDate":"2014-07-09T10:34:44.341-05:00","passwordReset":false}}'
|
75
77
|
http_version:
|
76
|
-
recorded_at: Wed,
|
78
|
+
recorded_at: Wed, 09 Jul 2014 15:34:44 GMT
|
77
79
|
recorded_with: VCR 2.5.0
|
data/spec/cassettes/Code42_Client/_update_user/when_sending_an_invalid_email/raises_an_exception.yml
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://admin:admin@localhost:
|
5
|
+
uri: http://admin:admin@localhost:4280/api/user
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"orgId":2,"username":"testuser"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.9.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept-Encoding:
|
@@ -25,27 +25,28 @@ http_interactions:
|
|
25
25
|
Pragma:
|
26
26
|
- no-cache
|
27
27
|
Content-Location:
|
28
|
-
- http://localhost:
|
28
|
+
- http://localhost:4280/api/v1/user
|
29
29
|
Content-Type:
|
30
|
-
- application/json;
|
30
|
+
- application/json;charset=UTF-8
|
31
31
|
Transfer-Encoding:
|
32
32
|
- chunked
|
33
33
|
Server:
|
34
34
|
- Jetty(7.6.3.v20120416)
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"metadata":{"timestamp":"2014-
|
37
|
+
string: '{"metadata":{"timestamp":"2014-07-09T10:34:44.391-05:00","params":{}},"data":{"userId":38,"userUid":"7a1c8ea53caabfe3","status":"Active","username":"testuser","email":null,"firstName":null,"lastName":"Jenkins","quotaInBytes":-1,"orgId":2,"orgUid":"proserverdemo","orgName":"PROServer
|
38
|
+
Demo","active":true,"blocked":false,"emailPromo":true,"invited":true,"orgType":"ENTERPRISE","usernameIsAnEmail":null,"creationDate":"2014-07-09T10:27:12.465-05:00","modificationDate":"2014-07-09T10:34:44.379-05:00","passwordReset":false}}'
|
38
39
|
http_version:
|
39
|
-
recorded_at: Wed,
|
40
|
+
recorded_at: Wed, 09 Jul 2014 15:34:44 GMT
|
40
41
|
- request:
|
41
42
|
method: put
|
42
|
-
uri: http://admin:admin@localhost:
|
43
|
+
uri: http://admin:admin@localhost:4280/api/user/38
|
43
44
|
body:
|
44
45
|
encoding: UTF-8
|
45
46
|
string: '{"email":"Jenkins"}'
|
46
47
|
headers:
|
47
48
|
User-Agent:
|
48
|
-
- Faraday v0.
|
49
|
+
- Faraday v0.9.0
|
49
50
|
Content-Type:
|
50
51
|
- application/json
|
51
52
|
Accept-Encoding:
|
@@ -60,7 +61,7 @@ http_interactions:
|
|
60
61
|
Pragma:
|
61
62
|
- no-cache
|
62
63
|
Content-Location:
|
63
|
-
- http://localhost:
|
64
|
+
- http://localhost:4280/api/v1/user/38
|
64
65
|
Content-Type:
|
65
66
|
- text/html;charset=ISO-8859-1
|
66
67
|
Cache-Control:
|
@@ -73,5 +74,5 @@ http_interactions:
|
|
73
74
|
encoding: UTF-8
|
74
75
|
string: '[{"name":"EMAIL_INVALID","description":"com.code42.core.BuilderException","objects":[]}]'
|
75
76
|
http_version:
|
76
|
-
recorded_at: Wed,
|
77
|
+
recorded_at: Wed, 09 Jul 2014 15:34:44 GMT
|
77
78
|
recorded_with: VCR 2.5.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://admin:admin@localhost:
|
5
|
+
uri: http://admin:admin@localhost:4280/api/user/my
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.9.0
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -22,42 +22,17 @@ http_interactions:
|
|
22
22
|
- no-store
|
23
23
|
Pragma:
|
24
24
|
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://localhost:4280/api/v1/user/my
|
25
27
|
Content-Type:
|
26
|
-
- application/json;
|
28
|
+
- application/json;charset=UTF-8
|
27
29
|
Transfer-Encoding:
|
28
30
|
- chunked
|
29
31
|
Server:
|
30
32
|
- Jetty(7.6.3.v20120416)
|
31
33
|
body:
|
32
34
|
encoding: UTF-8
|
33
|
-
string:
|
34
|
-
{
|
35
|
-
"metadata": {
|
36
|
-
"timestamp": "2013-06-13T15:16:30.059-05:00",
|
37
|
-
"params": {}
|
38
|
-
},
|
39
|
-
"data": {
|
40
|
-
"userId": 1,
|
41
|
-
"userUid": "thwlhuOyiq2svbdcqfmm2demndi",
|
42
|
-
"status": "Active",
|
43
|
-
"username": "admin",
|
44
|
-
"email": "admin",
|
45
|
-
"firstName": "Admin",
|
46
|
-
"lastName": "Admin",
|
47
|
-
"quotaInBytes": -1,
|
48
|
-
"orgId": 1,
|
49
|
-
"orgUid": "ADMIN",
|
50
|
-
"orgName": "ADMIN",
|
51
|
-
"active": true,
|
52
|
-
"blocked": false,
|
53
|
-
"emailPromo": false,
|
54
|
-
"invited": false,
|
55
|
-
"orgType": "ENTERPRISE",
|
56
|
-
"usernameIsAnEmail": false,
|
57
|
-
"creationDate": "2006-04-17T12:30:00.990-05:00",
|
58
|
-
"modificationDate": "2006-04-17T12:30:00.990-05:00"
|
59
|
-
}
|
60
|
-
}
|
35
|
+
string: '{"metadata":{"timestamp":"2014-07-09T10:34:44.016-05:00","params":{}},"data":{"userId":1,"userUid":"thwlhuOyiq2svbdcqfmm2demndi","status":"Active","username":"admin","email":"admin","firstName":"Admin","lastName":"Admin","quotaInBytes":-1,"orgId":1,"orgUid":"ADMIN","orgName":"ADMIN","active":true,"blocked":false,"emailPromo":false,"invited":false,"orgType":"ENTERPRISE","usernameIsAnEmail":false,"creationDate":"2006-04-17T12:30:00.990-05:00","modificationDate":"2006-04-17T12:30:00.990-05:00","passwordReset":false}}'
|
61
36
|
http_version:
|
62
|
-
recorded_at:
|
37
|
+
recorded_at: Wed, 09 Jul 2014 15:34:44 GMT
|
63
38
|
recorded_with: VCR 2.5.0
|