bugsnag-api 1.0.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +14 -3
  3. data/CHANGELOG.md +32 -0
  4. data/CONTRIBUTING.md +40 -0
  5. data/README.md +126 -111
  6. data/bugsnag-api.gemspec +4 -3
  7. data/lib/bugsnag/api/client.rb +18 -9
  8. data/lib/bugsnag/api/client/collaborators.rb +87 -0
  9. data/lib/bugsnag/api/client/comments.rb +31 -40
  10. data/lib/bugsnag/api/client/currentuser.rb +33 -0
  11. data/lib/bugsnag/api/client/errors.rb +45 -51
  12. data/lib/bugsnag/api/client/eventfields.rb +50 -0
  13. data/lib/bugsnag/api/client/events.rb +38 -32
  14. data/lib/bugsnag/api/client/organizations.rb +46 -0
  15. data/lib/bugsnag/api/client/pivots.rb +43 -0
  16. data/lib/bugsnag/api/client/projects.rb +37 -63
  17. data/lib/bugsnag/api/client/trends.rb +38 -0
  18. data/lib/bugsnag/api/error.rb +4 -0
  19. data/lib/bugsnag/api/version.rb +1 -1
  20. data/spec/bugsnag/api/client/collaborators_spec.rb +101 -0
  21. data/spec/bugsnag/api/client/comments_spec.rb +42 -30
  22. data/spec/bugsnag/api/client/currentuser_spec.rb +57 -0
  23. data/spec/bugsnag/api/client/errors_spec.rb +44 -41
  24. data/spec/bugsnag/api/client/eventfields_spec.rb +56 -0
  25. data/spec/bugsnag/api/client/events_spec.rb +41 -29
  26. data/spec/bugsnag/api/client/organizations_spec.rb +53 -0
  27. data/spec/bugsnag/api/client/pivots_spec.rb +49 -0
  28. data/spec/bugsnag/api/client/projects_spec.rb +35 -59
  29. data/spec/bugsnag/api/client/trends_spec.rb +44 -0
  30. data/spec/bugsnag/api/client_spec.rb +8 -3
  31. data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +45 -27
  32. data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +45 -27
  33. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/creates_and_returns_a_collaborator.yml +80 -0
  34. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/invites_multiple_collaborators.yml +80 -0
  35. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborator/returns_a_collaborator.yml +157 -0
  36. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_organization_collaborators.yml +160 -0
  37. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_project_collaborators.yml +160 -0
  38. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/throws_an_argument_error_if_neither_org_id_or_project_id_are_provided.yml +80 -0
  39. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_delete_collaborator/deletes_a_collaborator.yml +80 -0
  40. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_update_collaborator_permissions/updates_and_returns_the_collaborator.yml +157 -0
  41. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_view_collaborator_projects/returns_a_list_of_projects_belonging_to_the_collaborator.yml +159 -0
  42. data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/creates_a_comment_on_the_error.yml +82 -0
  43. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comment/retrieves_the_comment_specified.yml +159 -0
  44. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comments/retrieves_all_comments_on_an_error.yml +161 -0
  45. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_delete_comment/deletes_the_comment_and_returns_true.yml +82 -0
  46. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_update_comment/updates_the_message_on_a_comment.yml +159 -0
  47. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_auth_token/returns_the_organization_the_auth_token_belongs_to.yml +81 -0
  48. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_user_credentials/returns_users_organizations.yml +85 -0
  49. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_auth_token/lists_current_user_s_projects_in_the_organization.yml +82 -0
  50. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_user_credentials/lists_current_user_s_projects_in_the_organization.yml +86 -0
  51. data/spec/cassettes/Bugsnag_Api_Client_Errors/_error/returns_a_single_error.yml +82 -0
  52. data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_errors_on_the_project.yml +84 -0
  53. data/spec/cassettes/Bugsnag_Api_Client_Errors/_update_errors/updates_and_returns_the_updated_errors.yml +80 -0
  54. data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/lists_all_error_events.yml +84 -0
  55. data/spec/cassettes/Bugsnag_Api_Client_Events/_event/returns_the_specified_event.yml +253 -0
  56. data/spec/cassettes/Bugsnag_Api_Client_Events/_events/returns_the_a_list_of_project_errors.yml +84 -0
  57. data/spec/cassettes/Bugsnag_Api_Client_Events/_latest_event/returns_the_last_event_on_an_error.yml +253 -0
  58. data/spec/cassettes/Bugsnag_Api_Client_Organizations/_create_organization/creates_a_new_organization.yml +84 -0
  59. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_delete_organization/deletes_the_organization.yml +159 -0
  60. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_organization/returns_the_requested_organization.yml +165 -0
  61. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_update_organization/updates_and_returns_the_organization.yml +165 -0
  62. data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_new_project.yml +80 -0
  63. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_delete_project/deletes_the_project.yml +151 -0
  64. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_project/returns_the_requested_project.yml +157 -0
  65. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_regenerate_api_key/removes_the_current_api_key_and_replaces_it_with_a_new_api_key.yml +157 -0
  66. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_update_project/updates_and_returns_the_project.yml +157 -0
  67. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_error_trends_in_bucket_form.yml +80 -0
  68. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_project_trends_in_bucket_form.yml +80 -0
  69. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_project_trends_in_resolution_form.yml +80 -0
  70. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_trends_in_resolution_form.yml +80 -0
  71. data/spec/spec_helper.rb +29 -27
  72. metadata +124 -83
  73. data/lib/bugsnag/api/client/accounts.rb +0 -44
  74. data/lib/bugsnag/api/client/users.rb +0 -99
  75. data/spec/bugsnag/api/client/accounts_spec.rb +0 -45
  76. data/spec/bugsnag/api/client/users_spec.rb +0 -105
  77. data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/returns_the_requested_account.yml +0 -49
  78. data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/when_using_account_credentials/returns_the_account.yml +0 -51
  79. data/spec/cassettes/Bugsnag_Api_Client_Accounts/_accounts/returns_all_accounts.yml +0 -49
  80. data/spec/cassettes/Bugsnag_Api_Client_Comments/_comments/returns_all_comments_on_an_error.yml +0 -107
  81. data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/created_a_comment.yml +0 -51
  82. data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_comment/returns_a_comment.yml +0 -97
  83. data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_delete_comment/deletes_an_existing_comment.yml +0 -92
  84. data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_update_comment/updates_an_existing_comment.yml +0 -97
  85. data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_all_errors_on_an_project.yml +0 -48
  86. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_error/returns_an_error.yml +0 -48
  87. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_reopen_error/reopens_the_error.yml +0 -48
  88. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_resolve_error/resolves_the_error.yml +0 -48
  89. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_update_error/updates_the_error.yml +0 -48
  90. data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/returns_all_events_on_an_error.yml +0 -64
  91. data/spec/cassettes/Bugsnag_Api_Client_Events/_project_events/returns_all_events_on_a_project.yml +0 -64
  92. data/spec/cassettes/Bugsnag_Api_Client_Events/with_event/_event/returns_an_event.yml +0 -56
  93. data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/returns_all_projects_on_an_account.yml +0 -61
  94. data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/when_using_account_credentials/returns_all_projects.yml +0 -63
  95. data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_project_on_an_account.yml +0 -50
  96. data/spec/cassettes/Bugsnag_Api_Client_Projects/_user_projects/returns_all_projects_for_a_user.yml +0 -61
  97. data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_delete_project/deletes_an_existing_project.yml +0 -91
  98. data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_project/returns_a_project.yml +0 -95
  99. data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_update_project/updates_an_existing_project.yml +0 -95
  100. data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/returns_all_users_on_an_account.yml +0 -49
  101. data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/when_using_account_credentials/returns_all_users.yml +0 -51
  102. data/spec/cassettes/Bugsnag_Api_Client_Users/_invite_user/invites_a_user_to_an_account.yml +0 -48
  103. data/spec/cassettes/Bugsnag_Api_Client_Users/_project_users/returns_all_users_for_a_project.yml +0 -49
  104. data/spec/cassettes/Bugsnag_Api_Client_Users/_user/returns_a_user.yml +0 -48
  105. data/spec/cassettes/Bugsnag_Api_Client_Users/_user/when_using_user_credentials/returns_the_authed_user.yml +0 -48
  106. data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_remove_user/removes_a_user_from_an_account.yml +0 -89
  107. data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_update_user_permissions/updates_a_users_permissions.yml +0 -93
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"message":"test_message"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.3
12
+ Content-Type:
13
+ - application/json
14
+ X-Version:
15
+ - '2'
16
+ Authorization:
17
+ - token BUGSNAG_AUTH_TOKEN
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Accept:
21
+ - "*/*"
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 09 Oct 2017 14:23:18 GMT
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Location:
36
+ - https://api.bugsnag.com/comments/59db8656901da0001b1eb558
37
+ Etag:
38
+ - W/"524a98372edb1b76ed5aa28b231527c8"
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - ac369bb5-4e36-482c-8d88-3f8ffeba9e78
43
+ X-Runtime:
44
+ - '0.278597'
45
+ Vary:
46
+ - Origin
47
+ X-Ratelimit-Limit:
48
+ - '10'
49
+ X-Ratelimit-Remaining:
50
+ - '1'
51
+ Content-Security-Policy:
52
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
53
+ connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
54
+ https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
55
+ ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
56
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
57
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
58
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
59
+ X-Content-Type-Options:
60
+ - nosniff
61
+ X-Download-Options:
62
+ - noopen
63
+ X-Frame-Options:
64
+ - DENY
65
+ X-Permitted-Cross-Domain-Policies:
66
+ - none
67
+ X-Xss-Protection:
68
+ - 1; mode=block
69
+ X-Robots-Tag:
70
+ - noindex, nofollow
71
+ Strict-Transport-Security:
72
+ - max-age=31536000
73
+ Via:
74
+ - 1.1 google
75
+ Alt-Svc:
76
+ - clear
77
+ body:
78
+ encoding: UTF-8
79
+ string: '{"id":"59db8656901da0001b1eb558","message":"test_message","created_at":"2017-10-09T14:23:18.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}'
80
+ http_version:
81
+ recorded_at: Mon, 09 Oct 2017 14:23:17 GMT
82
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,159 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"message":"message"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.3
12
+ Content-Type:
13
+ - application/json
14
+ X-Version:
15
+ - '2'
16
+ Authorization:
17
+ - token BUGSNAG_AUTH_TOKEN
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Accept:
21
+ - "*/*"
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 09 Oct 2017 14:23:17 GMT
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Location:
36
+ - https://api.bugsnag.com/comments/59db8655901da000251e93bb
37
+ Etag:
38
+ - W/"55202f7fc2a2819fe15e3dbd75f74f18"
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - 9a413b03-d187-42fc-99fe-299021483ee6
43
+ X-Runtime:
44
+ - '0.301918'
45
+ Vary:
46
+ - Origin
47
+ X-Ratelimit-Limit:
48
+ - '10'
49
+ X-Ratelimit-Remaining:
50
+ - '3'
51
+ Content-Security-Policy:
52
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
53
+ connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
54
+ https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
55
+ ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
56
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
57
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
58
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
59
+ X-Content-Type-Options:
60
+ - nosniff
61
+ X-Download-Options:
62
+ - noopen
63
+ X-Frame-Options:
64
+ - DENY
65
+ X-Permitted-Cross-Domain-Policies:
66
+ - none
67
+ X-Xss-Protection:
68
+ - 1; mode=block
69
+ X-Robots-Tag:
70
+ - noindex, nofollow
71
+ Strict-Transport-Security:
72
+ - max-age=31536000
73
+ Via:
74
+ - 1.1 google
75
+ Alt-Svc:
76
+ - clear
77
+ body:
78
+ encoding: UTF-8
79
+ string: '{"id":"59db8655901da000251e93bb","message":"message","created_at":"2017-10-09T14:23:17.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}'
80
+ http_version:
81
+ recorded_at: Mon, 09 Oct 2017 14:23:16 GMT
82
+ - request:
83
+ method: get
84
+ uri: https://api.bugsnag.com/comments/59db8655901da000251e93bb
85
+ body:
86
+ encoding: US-ASCII
87
+ string: ''
88
+ headers:
89
+ User-Agent:
90
+ - Bugsnag API Ruby Gem 1.0.3
91
+ Content-Type:
92
+ - application/json
93
+ X-Version:
94
+ - '2'
95
+ Authorization:
96
+ - token BUGSNAG_AUTH_TOKEN
97
+ Accept-Encoding:
98
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
+ Accept:
100
+ - "*/*"
101
+ response:
102
+ status:
103
+ code: 200
104
+ message: OK
105
+ headers:
106
+ Server:
107
+ - nginx
108
+ Date:
109
+ - Mon, 09 Oct 2017 14:23:17 GMT
110
+ Content-Type:
111
+ - application/json; charset=utf-8
112
+ Etag:
113
+ - W/"b73360ee8c7437614487b331880c2394"
114
+ Cache-Control:
115
+ - max-age=0, private, must-revalidate
116
+ X-Request-Id:
117
+ - c5e1f239-04fb-4d15-87ac-7dd979f6977b
118
+ X-Runtime:
119
+ - '0.299950'
120
+ Vary:
121
+ - Origin
122
+ X-Ratelimit-Limit:
123
+ - '10'
124
+ X-Ratelimit-Remaining:
125
+ - '2'
126
+ Content-Security-Policy:
127
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
128
+ connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
129
+ https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
130
+ ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
131
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
132
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
133
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
134
+ X-Content-Type-Options:
135
+ - nosniff
136
+ X-Download-Options:
137
+ - noopen
138
+ X-Frame-Options:
139
+ - DENY
140
+ X-Permitted-Cross-Domain-Policies:
141
+ - none
142
+ X-Xss-Protection:
143
+ - 1; mode=block
144
+ X-Robots-Tag:
145
+ - noindex, nofollow
146
+ Strict-Transport-Security:
147
+ - max-age=31536000
148
+ Via:
149
+ - 1.1 google
150
+ Alt-Svc:
151
+ - clear
152
+ Transfer-Encoding:
153
+ - chunked
154
+ body:
155
+ encoding: ASCII-8BIT
156
+ string: '{"id":"59db8655901da000251e93bb","message":"message","created_at":"2017-10-09T14:23:17.000Z","user":{"id":"59ae67b68a0558001a351bcb","email":"BUGSNAG_USER_EMAIL","name":"AlexTestsM","url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb","projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects"},"url":"https://api.bugsnag.com/comments/59db8655901da000251e93bb"}'
157
+ http_version:
158
+ recorded_at: Mon, 09 Oct 2017 14:23:16 GMT
159
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,161 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"message":"message"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.3
12
+ Content-Type:
13
+ - application/json
14
+ X-Version:
15
+ - '2'
16
+ Authorization:
17
+ - token BUGSNAG_AUTH_TOKEN
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Accept:
21
+ - "*/*"
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 09 Oct 2017 14:23:14 GMT
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Location:
36
+ - https://api.bugsnag.com/comments/59db8652c636d200228adcd7
37
+ Etag:
38
+ - W/"6b43066c9c3209cae0f8ed7edfc9e604"
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - 1c7d8dd5-06bc-48b1-a5e8-38c536894f99
43
+ X-Runtime:
44
+ - '0.332625'
45
+ Vary:
46
+ - Origin
47
+ X-Ratelimit-Limit:
48
+ - '10'
49
+ X-Ratelimit-Remaining:
50
+ - '8'
51
+ Content-Security-Policy:
52
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
53
+ connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
54
+ https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
55
+ ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
56
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
57
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
58
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
59
+ X-Content-Type-Options:
60
+ - nosniff
61
+ X-Download-Options:
62
+ - noopen
63
+ X-Frame-Options:
64
+ - DENY
65
+ X-Permitted-Cross-Domain-Policies:
66
+ - none
67
+ X-Xss-Protection:
68
+ - 1; mode=block
69
+ X-Robots-Tag:
70
+ - noindex, nofollow
71
+ Strict-Transport-Security:
72
+ - max-age=31536000
73
+ Via:
74
+ - 1.1 google
75
+ Alt-Svc:
76
+ - clear
77
+ body:
78
+ encoding: UTF-8
79
+ string: '{"id":"59db8652c636d200228adcd7","message":"message","created_at":"2017-10-09T14:23:14.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}'
80
+ http_version:
81
+ recorded_at: Mon, 09 Oct 2017 14:23:13 GMT
82
+ - request:
83
+ method: get
84
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
85
+ body:
86
+ encoding: US-ASCII
87
+ string: ''
88
+ headers:
89
+ User-Agent:
90
+ - Bugsnag API Ruby Gem 1.0.3
91
+ Content-Type:
92
+ - application/json
93
+ X-Version:
94
+ - '2'
95
+ Authorization:
96
+ - token BUGSNAG_AUTH_TOKEN
97
+ Accept-Encoding:
98
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
+ Accept:
100
+ - "*/*"
101
+ response:
102
+ status:
103
+ code: 200
104
+ message: OK
105
+ headers:
106
+ Server:
107
+ - nginx
108
+ Date:
109
+ - Mon, 09 Oct 2017 14:23:14 GMT
110
+ Content-Type:
111
+ - application/json; charset=utf-8
112
+ X-Total-Count:
113
+ - '2'
114
+ Etag:
115
+ - W/"02d442c6ef711d6998a0f57edb8371d8"
116
+ Cache-Control:
117
+ - max-age=0, private, must-revalidate
118
+ X-Request-Id:
119
+ - 0bd33ae0-7c5b-4202-8427-ac0e93dd2b22
120
+ X-Runtime:
121
+ - '0.252916'
122
+ Vary:
123
+ - Origin
124
+ X-Ratelimit-Limit:
125
+ - '10'
126
+ X-Ratelimit-Remaining:
127
+ - '7'
128
+ Content-Security-Policy:
129
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
130
+ connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
131
+ https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
132
+ ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
133
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
134
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
135
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
136
+ X-Content-Type-Options:
137
+ - nosniff
138
+ X-Download-Options:
139
+ - noopen
140
+ X-Frame-Options:
141
+ - DENY
142
+ X-Permitted-Cross-Domain-Policies:
143
+ - none
144
+ X-Xss-Protection:
145
+ - 1; mode=block
146
+ X-Robots-Tag:
147
+ - noindex, nofollow
148
+ Strict-Transport-Security:
149
+ - max-age=31536000
150
+ Via:
151
+ - 1.1 google
152
+ Alt-Svc:
153
+ - clear
154
+ Transfer-Encoding:
155
+ - chunked
156
+ body:
157
+ encoding: ASCII-8BIT
158
+ string: '[{"id":"59db8652c636d200228adcd7","message":"message","created_at":"2017-10-09T14:23:14.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"59db85eec636d200228adcd4","message":"updated","created_at":"2017-10-09T14:21:34.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}]'
159
+ http_version:
160
+ recorded_at: Mon, 09 Oct 2017 14:23:13 GMT
161
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"message":"message"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.3
12
+ Content-Type:
13
+ - application/json
14
+ X-Version:
15
+ - '2'
16
+ Authorization:
17
+ - token BUGSNAG_AUTH_TOKEN
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Accept:
21
+ - "*/*"
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 09 Oct 2017 14:23:16 GMT
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Location:
36
+ - https://api.bugsnag.com/comments/59db8654c1951b0026d5a422
37
+ Etag:
38
+ - W/"e65d7e8fb49e547a78ca748a74cb6682"
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - 39553cc5-1f18-46c4-bc7b-5a48b2a548cf
43
+ X-Runtime:
44
+ - '0.276641'
45
+ Vary:
46
+ - Origin
47
+ X-Ratelimit-Limit:
48
+ - '10'
49
+ X-Ratelimit-Remaining:
50
+ - '4'
51
+ Content-Security-Policy:
52
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
53
+ connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
54
+ https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
55
+ ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
56
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
57
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
58
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
59
+ X-Content-Type-Options:
60
+ - nosniff
61
+ X-Download-Options:
62
+ - noopen
63
+ X-Frame-Options:
64
+ - DENY
65
+ X-Permitted-Cross-Domain-Policies:
66
+ - none
67
+ X-Xss-Protection:
68
+ - 1; mode=block
69
+ X-Robots-Tag:
70
+ - noindex, nofollow
71
+ Strict-Transport-Security:
72
+ - max-age=31536000
73
+ Via:
74
+ - 1.1 google
75
+ Alt-Svc:
76
+ - clear
77
+ body:
78
+ encoding: UTF-8
79
+ string: '{"id":"59db8654c1951b0026d5a422","message":"message","created_at":"2017-10-09T14:23:16.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}'
80
+ http_version:
81
+ recorded_at: Mon, 09 Oct 2017 14:23:15 GMT
82
+ recorded_with: VCR 2.9.3