99designs-tasks 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/99designs-tasks.gemspec +30 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +37 -0
- data/Rakefile +7 -0
- data/lib/99designs/errors/api_error.rb +4 -0
- data/lib/99designs/errors/authentication_error.rb +4 -0
- data/lib/99designs/errors/base_error.rb +15 -0
- data/lib/99designs/errors/invalid_state_error.rb +4 -0
- data/lib/99designs/errors/not_found_error.rb +4 -0
- data/lib/99designs/errors/payment_error.rb +4 -0
- data/lib/99designs/errors/validation_error.rb +7 -0
- data/lib/99designs/tasks/api_client.rb +133 -0
- data/lib/99designs/tasks/version.rb +5 -0
- data/lib/99designs/tasks.rb +10 -0
- data/spec/api_client_spec.rb +144 -0
- data/spec/cassettes/approve_delivery.yml +45 -0
- data/spec/cassettes/attach_files.yml +91 -0
- data/spec/cassettes/create_task.yml +60 -0
- data/spec/cassettes/create_task_blank_body.yml +47 -0
- data/spec/cassettes/create_task_invalid_apikey.yml +48 -0
- data/spec/cassettes/create_task_no_credits.yml +46 -0
- data/spec/cassettes/delete_attachment.yml +127 -0
- data/spec/cassettes/get_task.yml +45 -0
- data/spec/cassettes/post_comment.yml +45 -0
- data/spec/cassettes/request_revision.yml +45 -0
- data/spec/cassettes/request_revision_approve_delivery.yml +46 -0
- data/spec/cassettes/server_having_problems.yml +121 -0
- data/spec/cassettes/task_not_found.yml +46 -0
- data/spec/cassettes/update_task.yml +87 -0
- data/spec/spec_helper.rb +91 -0
- data/spec/support/sample.txt +1 -0
- data/spec/support/vcr.rb +10 -0
- metadata +210 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "-------------RubyMultipartPost\r\nContent-Disposition: form-data; name=\"body\"\r\n\r\nhello\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
9
|
+
form-data; name=\"file[]\"\r\n\r\nhttp://dn.ht/money.svg\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
10
|
+
form-data; name=\"file[]\"; filename=\"sample.txt\"\r\nContent-Length: 12\r\nContent-Type:
|
11
|
+
text/plain\r\nContent-Transfer-Encoding: binary\r\n\r\nhello world\n\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
12
|
+
form-data; name=\"webhook_url\"\r\n\r\n\r\n-------------RubyMultipartPost--\r\n\r\n"
|
13
|
+
headers:
|
14
|
+
User-Agent:
|
15
|
+
- Faraday v0.9.1
|
16
|
+
Content-Type:
|
17
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost
|
18
|
+
Content-Length:
|
19
|
+
- '514'
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Accept:
|
23
|
+
- "*/*"
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: Created
|
28
|
+
headers:
|
29
|
+
Server:
|
30
|
+
- nginx/1.4.6 (Ubuntu)
|
31
|
+
Content-Type:
|
32
|
+
- application/vnd.99designs.task+json; profile=http://api.99designs.com.dockervm:49881/tasks/v1/schema#/Task
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
Connection:
|
36
|
+
- keep-alive
|
37
|
+
Set-Cookie:
|
38
|
+
- tasks-sessionid=mg5j1hup5l24oh8vt9jru416g4; expires=Tue, 02-Jun-2015 01:05:05
|
39
|
+
GMT; Max-Age=604800; path=/tasks; HttpOnly
|
40
|
+
Location:
|
41
|
+
- http://api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a
|
42
|
+
Content-Location:
|
43
|
+
- http://api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a
|
44
|
+
Cache-Control:
|
45
|
+
- no-cache
|
46
|
+
- no-transform
|
47
|
+
Date:
|
48
|
+
- Tue, 26 May 2015 01:05:05 GMT
|
49
|
+
Access-Control-Allow-Methods:
|
50
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
51
|
+
Access-Control-Allow-Headers:
|
52
|
+
- Authorization
|
53
|
+
X-Debug-Token:
|
54
|
+
- 9892f9
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: "{\"id\":\"84cc6f1d34d60f14d42389a0ae92740a\",\"state\":{\"code\":\"available\",\"text\":\"Available\"},\"body\":\"hello\",\"attachments\":[{\"id\":193,\"filename\":\"money.svg\",\"filesize\":19039,\"filetype\":\"image\\/svg+xml\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/779318b249ffe555976bda74dc200cbb553ae4a0\\/0\\/money.svg\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/193\",\"method\":\"POST\"}]},{\"id\":194,\"filename\":\"sample.txt\",\"filesize\":12,\"filetype\":\"text\\/plain\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/236e2740391c4302e157e804bbde597949b48543\\/0\\/sample.txt\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/194\",\"method\":\"POST\"}]}],\"currentdesigner\":null,\"timeline\":[],\"links\":[{\"rel\":\"update_task\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\",\"method\":\"PUT\"},{\"rel\":\"attach_files\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\",\"method\":\"POST\"},{\"rel\":\"post_comment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/comment\",\"method\":\"POST\"},{\"rel\":\"self\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\",\"method\":\"GET\"}]}"
|
58
|
+
http_version:
|
59
|
+
recorded_at: Tue, 26 May 2015 01:05:04 GMT
|
60
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: body=&file%5B%5D=http%3A%2F%2Fdn.ht%2Fmoney.svg&webhook_url=
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
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: 400
|
21
|
+
message: Bad Request
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.4.6 (Ubuntu)
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
Date:
|
34
|
+
- Tue, 26 May 2015 01:39:31 GMT
|
35
|
+
Access-Control-Allow-Methods:
|
36
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
37
|
+
Access-Control-Allow-Headers:
|
38
|
+
- Authorization
|
39
|
+
X-Debug-Token:
|
40
|
+
- 7afcda
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{\"message\":\"Validation failed\",\"errors\":[{\"field\":\"body\",\"message\":\"Body
|
44
|
+
is required\"}]}"
|
45
|
+
http_version:
|
46
|
+
recorded_at: Tue, 26 May 2015 01:39:31 GMT
|
47
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://fakeapikey:@api.99designs.com.dockervm:49881/tasks/v1/tasks
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: body=hello&file%5B%5D=http%3A%2F%2Fdn.ht%2Fmoney.svg&webhook_url=
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
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: 401
|
21
|
+
message: Unauthorized
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.4.6 (Ubuntu)
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Www-Authenticate:
|
32
|
+
- Basic realm="99designs Tasks API"
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Date:
|
36
|
+
- Tue, 26 May 2015 01:02:02 GMT
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
39
|
+
Access-Control-Allow-Headers:
|
40
|
+
- Authorization
|
41
|
+
X-Debug-Token:
|
42
|
+
- fb3139
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: "{\"message\":\"Unauthorized\"}"
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 26 May 2015 01:02:02 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: body=hello&file%5B%5D=http%3A%2F%2Fdn.ht%2Fmoney.svg&webhook_url=
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
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: 402
|
21
|
+
message: Payment Required
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.4.6 (Ubuntu)
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
Date:
|
34
|
+
- Tue, 26 May 2015 01:06:28 GMT
|
35
|
+
Access-Control-Allow-Methods:
|
36
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
37
|
+
Access-Control-Allow-Headers:
|
38
|
+
- Authorization
|
39
|
+
X-Debug-Token:
|
40
|
+
- fce9f3
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{\"message\":\"No task credits remaining\"}"
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 26 May 2015 01:06:28 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,127 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
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
|
+
Server:
|
22
|
+
- nginx/1.4.6 (Ubuntu)
|
23
|
+
Content-Type:
|
24
|
+
- application/vnd.99designs.task+json; profile=http://api.99designs.com.dockervm:49881/tasks/v1/schema#/Task
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
- no-transform
|
32
|
+
Date:
|
33
|
+
- Tue, 26 May 2015 01:26:40 GMT
|
34
|
+
Access-Control-Allow-Methods:
|
35
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
36
|
+
Access-Control-Allow-Headers:
|
37
|
+
- Authorization
|
38
|
+
X-Debug-Token:
|
39
|
+
- de1f99
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: "{\"id\":\"84cc6f1d34d60f14d42389a0ae92740a\",\"state\":{\"code\":\"available\",\"text\":\"Available\"},\"body\":\"updated\",\"attachments\":[{\"id\":193,\"filename\":\"money.svg\",\"filesize\":19039,\"filetype\":\"image\\/svg+xml\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/779318b249ffe555976bda74dc200cbb553ae4a0\\/0\\/money.svg\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/193\",\"method\":\"POST\"}]},{\"id\":194,\"filename\":\"sample.txt\",\"filesize\":12,\"filetype\":\"text\\/plain\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/236e2740391c4302e157e804bbde597949b48543\\/0\\/sample.txt\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/194\",\"method\":\"POST\"}]},{\"id\":195,\"filename\":\"money.svg\",\"filesize\":19039,\"filetype\":\"image\\/svg+xml\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/170d14123703814358cbf3a57725e4d913f4f176\\/0\\/money.svg\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/195\",\"method\":\"POST\"}]},{\"id\":196,\"filename\":\"sample.txt\",\"filesize\":12,\"filetype\":\"text\\/plain\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/626d51f649df9e3b2eae472d2f6cfea5e209d3f7\\/0\\/sample.txt\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/196\",\"method\":\"POST\"}]}],\"currentdesigner\":null,\"timeline\":[],\"links\":[{\"rel\":\"update_task\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\",\"method\":\"PUT\"},{\"rel\":\"attach_files\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\",\"method\":\"POST\"},{\"rel\":\"post_comment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/comment\",\"method\":\"POST\"},{\"rel\":\"self\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\",\"method\":\"GET\"}]}"
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 26 May 2015 01:26:40 GMT
|
45
|
+
- request:
|
46
|
+
method: delete
|
47
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a/attachments/193
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: ''
|
51
|
+
headers:
|
52
|
+
User-Agent:
|
53
|
+
- Faraday v0.9.1
|
54
|
+
Accept-Encoding:
|
55
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
56
|
+
Accept:
|
57
|
+
- "*/*"
|
58
|
+
response:
|
59
|
+
status:
|
60
|
+
code: 204
|
61
|
+
message: No Content
|
62
|
+
headers:
|
63
|
+
Server:
|
64
|
+
- nginx/1.4.6 (Ubuntu)
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
Connection:
|
68
|
+
- keep-alive
|
69
|
+
Cache-Control:
|
70
|
+
- no-cache
|
71
|
+
- no-transform
|
72
|
+
Date:
|
73
|
+
- Tue, 26 May 2015 01:26:40 GMT
|
74
|
+
Access-Control-Allow-Methods:
|
75
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
76
|
+
Access-Control-Allow-Headers:
|
77
|
+
- Authorization
|
78
|
+
X-Debug-Token:
|
79
|
+
- 7ad599
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: ''
|
83
|
+
http_version:
|
84
|
+
recorded_at: Tue, 26 May 2015 01:26:40 GMT
|
85
|
+
- request:
|
86
|
+
method: get
|
87
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a
|
88
|
+
body:
|
89
|
+
encoding: US-ASCII
|
90
|
+
string: ''
|
91
|
+
headers:
|
92
|
+
User-Agent:
|
93
|
+
- Faraday v0.9.1
|
94
|
+
Accept-Encoding:
|
95
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
96
|
+
Accept:
|
97
|
+
- "*/*"
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Server:
|
104
|
+
- nginx/1.4.6 (Ubuntu)
|
105
|
+
Content-Type:
|
106
|
+
- application/vnd.99designs.task+json; profile=http://api.99designs.com.dockervm:49881/tasks/v1/schema#/Task
|
107
|
+
Transfer-Encoding:
|
108
|
+
- chunked
|
109
|
+
Connection:
|
110
|
+
- keep-alive
|
111
|
+
Cache-Control:
|
112
|
+
- no-cache
|
113
|
+
- no-transform
|
114
|
+
Date:
|
115
|
+
- Tue, 26 May 2015 01:26:40 GMT
|
116
|
+
Access-Control-Allow-Methods:
|
117
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
118
|
+
Access-Control-Allow-Headers:
|
119
|
+
- Authorization
|
120
|
+
X-Debug-Token:
|
121
|
+
- fac0f6
|
122
|
+
body:
|
123
|
+
encoding: UTF-8
|
124
|
+
string: "{\"id\":\"84cc6f1d34d60f14d42389a0ae92740a\",\"state\":{\"code\":\"available\",\"text\":\"Available\"},\"body\":\"updated\",\"attachments\":[{\"id\":194,\"filename\":\"sample.txt\",\"filesize\":12,\"filetype\":\"text\\/plain\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/236e2740391c4302e157e804bbde597949b48543\\/0\\/sample.txt\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/194\",\"method\":\"POST\"}]},{\"id\":195,\"filename\":\"money.svg\",\"filesize\":19039,\"filetype\":\"image\\/svg+xml\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/170d14123703814358cbf3a57725e4d913f4f176\\/0\\/money.svg\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/195\",\"method\":\"POST\"}]},{\"id\":196,\"filename\":\"sample.txt\",\"filesize\":12,\"filetype\":\"text\\/plain\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/626d51f649df9e3b2eae472d2f6cfea5e209d3f7\\/0\\/sample.txt\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/196\",\"method\":\"POST\"}]}],\"currentdesigner\":null,\"timeline\":[],\"links\":[{\"rel\":\"update_task\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\",\"method\":\"PUT\"},{\"rel\":\"attach_files\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\",\"method\":\"POST\"},{\"rel\":\"post_comment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/comment\",\"method\":\"POST\"},{\"rel\":\"self\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\",\"method\":\"GET\"}]}"
|
125
|
+
http_version:
|
126
|
+
recorded_at: Tue, 26 May 2015 01:26:40 GMT
|
127
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
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
|
+
Server:
|
22
|
+
- nginx/1.4.6 (Ubuntu)
|
23
|
+
Content-Type:
|
24
|
+
- application/vnd.99designs.task+json; profile=http://api.99designs.com.dockervm:49881/tasks/v1/schema#/Task
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
- no-transform
|
32
|
+
Date:
|
33
|
+
- Tue, 26 May 2015 01:10:21 GMT
|
34
|
+
Access-Control-Allow-Methods:
|
35
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
36
|
+
Access-Control-Allow-Headers:
|
37
|
+
- Authorization
|
38
|
+
X-Debug-Token:
|
39
|
+
- b34fe2
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: "{\"id\":\"84cc6f1d34d60f14d42389a0ae92740a\",\"state\":{\"code\":\"available\",\"text\":\"Available\"},\"body\":\"hello\",\"attachments\":[{\"id\":193,\"filename\":\"money.svg\",\"filesize\":19039,\"filetype\":\"image\\/svg+xml\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/779318b249ffe555976bda74dc200cbb553ae4a0\\/0\\/money.svg\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/193\",\"method\":\"POST\"}]},{\"id\":194,\"filename\":\"sample.txt\",\"filesize\":12,\"filetype\":\"text\\/plain\",\"source\":\"https:\\/\\/d15rdjgfy8kdl5.cloudfront.net\\/tasks\\/128\\/attachments\\/236e2740391c4302e157e804bbde597949b48543\\/0\\/sample.txt\",\"thumbnail\":null,\"links\":[{\"rel\":\"delete_attachment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\\/194\",\"method\":\"POST\"}]}],\"currentdesigner\":null,\"timeline\":[],\"links\":[{\"rel\":\"update_task\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\",\"method\":\"PUT\"},{\"rel\":\"attach_files\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/attachments\",\"method\":\"POST\"},{\"rel\":\"post_comment\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\\/comment\",\"method\":\"POST\"},{\"rel\":\"self\",\"href\":\"http:\\/\\/api.99designs.com.dockervm:49881\\/tasks\\/v1\\/tasks\\/84cc6f1d34d60f14d42389a0ae92740a\",\"method\":\"GET\"}]}"
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 26 May 2015 01:10:21 GMT
|
45
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a/comment
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: comment=hello
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
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: 204
|
21
|
+
message: No Content
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.4.6 (Ubuntu)
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
- no-transform
|
32
|
+
Date:
|
33
|
+
- Tue, 26 May 2015 01:27:51 GMT
|
34
|
+
Access-Control-Allow-Methods:
|
35
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
36
|
+
Access-Control-Allow-Headers:
|
37
|
+
- Authorization
|
38
|
+
X-Debug-Token:
|
39
|
+
- f36422
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: ''
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 26 May 2015 01:27:51 GMT
|
45
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a/deliveries/13/request_revision
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: reason=Can+I+have+it+in+pdf+too+please%3F&type=other
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
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: 204
|
21
|
+
message: No Content
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.4.6 (Ubuntu)
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
- no-transform
|
32
|
+
Date:
|
33
|
+
- Tue, 26 May 2015 01:30:36 GMT
|
34
|
+
Access-Control-Allow-Methods:
|
35
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
36
|
+
Access-Control-Allow-Headers:
|
37
|
+
- Authorization
|
38
|
+
X-Debug-Token:
|
39
|
+
- 5f8510
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: ''
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 26 May 2015 01:30:35 GMT
|
45
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a/deliveries/14/request_revision
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: reason=Is+this+too+late%3F&type=other
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
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: 422
|
21
|
+
message: Unprocessable Entity
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.4.6 (Ubuntu)
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
Date:
|
34
|
+
- Tue, 26 May 2015 01:37:43 GMT
|
35
|
+
Access-Control-Allow-Methods:
|
36
|
+
- OPTIONS, GET, PUT, POST, DELETE
|
37
|
+
Access-Control-Allow-Headers:
|
38
|
+
- Authorization
|
39
|
+
X-Debug-Token:
|
40
|
+
- b6d0f1
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{\"message\":\"Machine cannot transition from [approved] after [requestRevision]\"}"
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 26 May 2015 01:37:42 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://xyzzy:@api.99designs.com.dockervm:49881/tasks/v1/tasks/84cc6f1d34d60f14d42389a0ae92740a
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
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: 500
|
19
|
+
message: Internal Server Error
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.4.6 (Ubuntu)
|
23
|
+
Content-Type:
|
24
|
+
- text/html
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Date:
|
32
|
+
- Tue, 26 May 2015 01:41:28 GMT
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: |-
|
36
|
+
<!DOCTYPE html>
|
37
|
+
<html>
|
38
|
+
<head>
|
39
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
40
|
+
<meta name="robots" content="noindex,nofollow" />
|
41
|
+
<style>
|
42
|
+
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html */
|
43
|
+
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
|
44
|
+
|
45
|
+
html { background: #eee; padding: 10px }
|
46
|
+
img { border: 0; }
|
47
|
+
#sf-resetcontent { width:970px; margin:0 auto; }
|
48
|
+
.sf-reset { font: 11px Verdana, Arial, sans-serif; color: #333 }
|
49
|
+
.sf-reset .clear { clear:both; height:0; font-size:0; line-height:0; }
|
50
|
+
.sf-reset .clear_fix:after { display:block; height:0; clear:both; visibility:hidden; }
|
51
|
+
.sf-reset .clear_fix { display:inline-block; }
|
52
|
+
.sf-reset * html .clear_fix { height:1%; }
|
53
|
+
.sf-reset .clear_fix { display:block; }
|
54
|
+
.sf-reset, .sf-reset .block { margin: auto }
|
55
|
+
.sf-reset abbr { border-bottom: 1px dotted #000; cursor: help; }
|
56
|
+
.sf-reset p { font-size:14px; line-height:20px; color:#868686; padding-bottom:20px }
|
57
|
+
.sf-reset strong { font-weight:bold; }
|
58
|
+
.sf-reset a { color:#6c6159; }
|
59
|
+
.sf-reset a img { border:none; }
|
60
|
+
.sf-reset a:hover { text-decoration:underline; }
|
61
|
+
.sf-reset em { font-style:italic; }
|
62
|
+
.sf-reset h1, .sf-reset h2 { font: 20px Georgia, "Times New Roman", Times, serif }
|
63
|
+
.sf-reset h2 span { background-color: #fff; color: #333; padding: 6px; float: left; margin-right: 10px; }
|
64
|
+
.sf-reset .traces li { font-size:12px; padding: 2px 4px; list-style-type:decimal; margin-left:20px; }
|
65
|
+
.sf-reset .block { background-color:#FFFFFF; padding:10px 28px; margin-bottom:20px;
|
66
|
+
-webkit-border-bottom-right-radius: 16px;
|
67
|
+
-webkit-border-bottom-left-radius: 16px;
|
68
|
+
-moz-border-radius-bottomright: 16px;
|
69
|
+
-moz-border-radius-bottomleft: 16px;
|
70
|
+
border-bottom-right-radius: 16px;
|
71
|
+
border-bottom-left-radius: 16px;
|
72
|
+
border-bottom:1px solid #ccc;
|
73
|
+
border-right:1px solid #ccc;
|
74
|
+
border-left:1px solid #ccc;
|
75
|
+
}
|
76
|
+
.sf-reset .block_exception { background-color:#ddd; color: #333; padding:20px;
|
77
|
+
-webkit-border-top-left-radius: 16px;
|
78
|
+
-webkit-border-top-right-radius: 16px;
|
79
|
+
-moz-border-radius-topleft: 16px;
|
80
|
+
-moz-border-radius-topright: 16px;
|
81
|
+
border-top-left-radius: 16px;
|
82
|
+
border-top-right-radius: 16px;
|
83
|
+
border-top:1px solid #ccc;
|
84
|
+
border-right:1px solid #ccc;
|
85
|
+
border-left:1px solid #ccc;
|
86
|
+
overflow: hidden;
|
87
|
+
word-wrap: break-word;
|
88
|
+
}
|
89
|
+
.sf-reset li a { background:none; color:#868686; text-decoration:none; }
|
90
|
+
.sf-reset li a:hover { background:none; color:#313131; text-decoration:underline; }
|
91
|
+
.sf-reset ol { padding: 10px 0; }
|
92
|
+
.sf-reset h1 { background-color:#FFFFFF; padding: 15px 28px; margin-bottom: 20px;
|
93
|
+
-webkit-border-radius: 10px;
|
94
|
+
-moz-border-radius: 10px;
|
95
|
+
border-radius: 10px;
|
96
|
+
border: 1px solid #ccc;
|
97
|
+
}
|
98
|
+
</style>
|
99
|
+
</head>
|
100
|
+
<body>
|
101
|
+
<div id="sf-resetcontent" class="sf-reset">
|
102
|
+
<h1>Whoops, looks like something went wrong.</h1>
|
103
|
+
<div class="block_exception clear_fix">
|
104
|
+
<h2><span>1/1</span> <abbr title="Symfony\Component\HttpKernel\Exception\HttpException">HttpException</abbr>: Server is having problems</h2>
|
105
|
+
</div>
|
106
|
+
<div class="block">
|
107
|
+
<ol class="traces list_exception">
|
108
|
+
<li> in /tasks/vendor/silex/silex/src/Silex/Application.php line 351</li>
|
109
|
+
<li>at <abbr title="Silex\Application">Application</abbr>->abort('500', 'Server is having problems') in /tasks/src/controllers/api.php line 3</li>
|
110
|
+
<li>at <abbr title=""></abbr>include('/tasks/src/controllers/api.php') in /tasks/src/controllers.php line 5</li>
|
111
|
+
<li>at <abbr title=""></abbr>require('/tasks/src/controllers.php') in /tasks/src/Swiftly/Application.php line 41</li>
|
112
|
+
<li>at <abbr title="Swiftly\Application">Application</abbr>->configure() in /tasks/web/index.php line 13</li>
|
113
|
+
</ol>
|
114
|
+
</div>
|
115
|
+
|
116
|
+
</div>
|
117
|
+
</body>
|
118
|
+
</html>
|
119
|
+
http_version:
|
120
|
+
recorded_at: Tue, 26 May 2015 01:41:28 GMT
|
121
|
+
recorded_with: VCR 2.9.3
|