bugsnag-api 1.0.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -3
- data/CHANGELOG.md +32 -0
- data/CONTRIBUTING.md +40 -0
- data/README.md +126 -111
- data/bugsnag-api.gemspec +4 -3
- data/lib/bugsnag/api/client.rb +18 -9
- data/lib/bugsnag/api/client/collaborators.rb +87 -0
- data/lib/bugsnag/api/client/comments.rb +31 -40
- data/lib/bugsnag/api/client/currentuser.rb +33 -0
- data/lib/bugsnag/api/client/errors.rb +45 -51
- data/lib/bugsnag/api/client/eventfields.rb +50 -0
- data/lib/bugsnag/api/client/events.rb +38 -32
- data/lib/bugsnag/api/client/organizations.rb +46 -0
- data/lib/bugsnag/api/client/pivots.rb +43 -0
- data/lib/bugsnag/api/client/projects.rb +37 -63
- data/lib/bugsnag/api/client/trends.rb +38 -0
- data/lib/bugsnag/api/error.rb +4 -0
- data/lib/bugsnag/api/version.rb +1 -1
- data/spec/bugsnag/api/client/collaborators_spec.rb +101 -0
- data/spec/bugsnag/api/client/comments_spec.rb +42 -30
- data/spec/bugsnag/api/client/currentuser_spec.rb +57 -0
- data/spec/bugsnag/api/client/errors_spec.rb +44 -41
- data/spec/bugsnag/api/client/eventfields_spec.rb +56 -0
- data/spec/bugsnag/api/client/events_spec.rb +41 -29
- data/spec/bugsnag/api/client/organizations_spec.rb +53 -0
- data/spec/bugsnag/api/client/pivots_spec.rb +49 -0
- data/spec/bugsnag/api/client/projects_spec.rb +35 -59
- data/spec/bugsnag/api/client/trends_spec.rb +44 -0
- data/spec/bugsnag/api/client_spec.rb +8 -3
- data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +45 -27
- data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +45 -27
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/creates_and_returns_a_collaborator.yml +80 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/invites_multiple_collaborators.yml +80 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborator/returns_a_collaborator.yml +157 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_organization_collaborators.yml +160 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_project_collaborators.yml +160 -0
- 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
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_delete_collaborator/deletes_a_collaborator.yml +80 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_update_collaborator_permissions/updates_and_returns_the_collaborator.yml +157 -0
- 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
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/creates_a_comment_on_the_error.yml +82 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comment/retrieves_the_comment_specified.yml +159 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comments/retrieves_all_comments_on_an_error.yml +161 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_delete_comment/deletes_the_comment_and_returns_true.yml +82 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_update_comment/updates_the_message_on_a_comment.yml +159 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_auth_token/returns_the_organization_the_auth_token_belongs_to.yml +81 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_user_credentials/returns_users_organizations.yml +85 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_auth_token/lists_current_user_s_projects_in_the_organization.yml +82 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_user_credentials/lists_current_user_s_projects_in_the_organization.yml +86 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_error/returns_a_single_error.yml +82 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_errors_on_the_project.yml +84 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_update_errors/updates_and_returns_the_updated_errors.yml +80 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/lists_all_error_events.yml +84 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_event/returns_the_specified_event.yml +253 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_events/returns_the_a_list_of_project_errors.yml +84 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_latest_event/returns_the_last_event_on_an_error.yml +253 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/_create_organization/creates_a_new_organization.yml +84 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_delete_organization/deletes_the_organization.yml +159 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_organization/returns_the_requested_organization.yml +165 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_update_organization/updates_and_returns_the_organization.yml +165 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_new_project.yml +80 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_delete_project/deletes_the_project.yml +151 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_project/returns_the_requested_project.yml +157 -0
- 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
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_update_project/updates_and_returns_the_project.yml +157 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_error_trends_in_bucket_form.yml +80 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_project_trends_in_bucket_form.yml +80 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_project_trends_in_resolution_form.yml +80 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_trends_in_resolution_form.yml +80 -0
- data/spec/spec_helper.rb +29 -27
- metadata +124 -83
- data/lib/bugsnag/api/client/accounts.rb +0 -44
- data/lib/bugsnag/api/client/users.rb +0 -99
- data/spec/bugsnag/api/client/accounts_spec.rb +0 -45
- data/spec/bugsnag/api/client/users_spec.rb +0 -105
- data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/returns_the_requested_account.yml +0 -49
- data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/when_using_account_credentials/returns_the_account.yml +0 -51
- data/spec/cassettes/Bugsnag_Api_Client_Accounts/_accounts/returns_all_accounts.yml +0 -49
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_comments/returns_all_comments_on_an_error.yml +0 -107
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/created_a_comment.yml +0 -51
- data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_comment/returns_a_comment.yml +0 -97
- data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_delete_comment/deletes_an_existing_comment.yml +0 -92
- data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_update_comment/updates_an_existing_comment.yml +0 -97
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_all_errors_on_an_project.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_error/returns_an_error.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_reopen_error/reopens_the_error.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_resolve_error/resolves_the_error.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_update_error/updates_the_error.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/returns_all_events_on_an_error.yml +0 -64
- data/spec/cassettes/Bugsnag_Api_Client_Events/_project_events/returns_all_events_on_a_project.yml +0 -64
- data/spec/cassettes/Bugsnag_Api_Client_Events/with_event/_event/returns_an_event.yml +0 -56
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/returns_all_projects_on_an_account.yml +0 -61
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/when_using_account_credentials/returns_all_projects.yml +0 -63
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_project_on_an_account.yml +0 -50
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_user_projects/returns_all_projects_for_a_user.yml +0 -61
- data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_delete_project/deletes_an_existing_project.yml +0 -91
- data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_project/returns_a_project.yml +0 -95
- data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_update_project/updates_an_existing_project.yml +0 -95
- data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/returns_all_users_on_an_account.yml +0 -49
- data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/when_using_account_credentials/returns_all_users.yml +0 -51
- data/spec/cassettes/Bugsnag_Api_Client_Users/_invite_user/invites_a_user_to_an_account.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Users/_project_users/returns_all_users_for_a_project.yml +0 -49
- data/spec/cassettes/Bugsnag_Api_Client_Users/_user/returns_a_user.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Users/_user/when_using_user_credentials/returns_the_authed_user.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_remove_user/removes_a_user_from_an_account.yml +0 -89
- data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_update_user_permissions/updates_a_users_permissions.yml +0 -93
@@ -0,0 +1,165 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.bugsnag.com/organizations
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"testOrg"}'
|
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
|
+
- Basic YWxleCt0ZXN0QGJ1Z3NuYWcuY29tOkNvc21vcG9saXRhblBlYXNlbnQ=
|
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: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Server:
|
28
|
+
- nginx
|
29
|
+
Date:
|
30
|
+
- Mon, 09 Oct 2017 14:20:14 GMT
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- W/"3f464d130e63840630bbb4521e74b7f1"
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
Set-Cookie:
|
38
|
+
- _bugsnag_session_2=VEUvWHU0dVdUYmpra2Exdjh1K3owOFNWY3BxdUlzRjY4cER0RWo4cFNRR3RaSmdGdlZyd2kwSHBReHZ5bysxcUVLQkVvTU5yTkJiNUxVSE9ESng0RnRoVERmSDdUQUxvTE1VbHFtZ3pGdGFWWUFQUElybVUwR1o4c0Jmemt6Y0hkaGkwMWRDRWNLWEJ2QjNHdnFWdXpPd0M1K3BXazd4bExLUVJ5clJqaFZuTkUyODYxaGpQK2Z1a3lPbkRldVJ2UUowVDQweExZUWdiRWkrbjd5ZEk2QT09LS1qZk8zVDdDb1lXOHBrTlF2a09qajJ3PT0%3D--4948f914359e75c8a82ea5dcb4eea1dc774b2add;
|
39
|
+
domain=.bugsnag.com; path=/; expires=Tue, 09 Oct 2018 14:20:14 -0000; secure;
|
40
|
+
HttpOnly; SameSite=Lax
|
41
|
+
X-Request-Id:
|
42
|
+
- ba378990-54b2-462c-8d17-4b30c87b0563
|
43
|
+
X-Runtime:
|
44
|
+
- '1.166667'
|
45
|
+
Vary:
|
46
|
+
- Origin
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '10'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '5'
|
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
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
79
|
+
body:
|
80
|
+
encoding: ASCII-8BIT
|
81
|
+
string: '{"id":"59db859ec1951b0026d5a31c","name":"testOrg","slug":"testorg-27","creator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL"},"created_at":"2017-10-09T14:20:14.089Z","updated_at":"2017-10-09T14:20:14.187Z","auto_upgrade":true,"upgrade_url":"https://api.bugsnag.com/settings/testorg-27/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","billing_emails":["BUGSNAG_USER_EMAIL"]}'
|
82
|
+
http_version:
|
83
|
+
recorded_at: Mon, 09 Oct 2017 14:20:14 GMT
|
84
|
+
- request:
|
85
|
+
method: get
|
86
|
+
uri: https://api.bugsnag.com/organizations/59db859ec1951b0026d5a31c
|
87
|
+
body:
|
88
|
+
encoding: US-ASCII
|
89
|
+
string: ''
|
90
|
+
headers:
|
91
|
+
User-Agent:
|
92
|
+
- Bugsnag API Ruby Gem 1.0.3
|
93
|
+
Content-Type:
|
94
|
+
- application/json
|
95
|
+
X-Version:
|
96
|
+
- '2'
|
97
|
+
Authorization:
|
98
|
+
- Basic YWxleCt0ZXN0QGJ1Z3NuYWcuY29tOkNvc21vcG9saXRhblBlYXNlbnQ=
|
99
|
+
Accept-Encoding:
|
100
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
101
|
+
Accept:
|
102
|
+
- "*/*"
|
103
|
+
response:
|
104
|
+
status:
|
105
|
+
code: 200
|
106
|
+
message: OK
|
107
|
+
headers:
|
108
|
+
Server:
|
109
|
+
- nginx
|
110
|
+
Date:
|
111
|
+
- Mon, 09 Oct 2017 14:20:15 GMT
|
112
|
+
Content-Type:
|
113
|
+
- application/json; charset=utf-8
|
114
|
+
Etag:
|
115
|
+
- W/"3f464d130e63840630bbb4521e74b7f1"
|
116
|
+
Cache-Control:
|
117
|
+
- max-age=0, private, must-revalidate
|
118
|
+
Set-Cookie:
|
119
|
+
- _bugsnag_session_2=VXBEMnRuOGpFdTAzL0JLUnp5TVF0L1JCT2k0YmEybjJqdk12QkhyU3F2cDBWUUFVZkthWnpGRXNYQi9la0RRYW9TZHVhUk80MGFLdDNWb3dpOG53NDM3RStCS01FV2krK3J4US9jK0Q2QW5sWHViMkRDMzZWb2R5aGtrNFZsbnQ4Rmw4TWo3Vnh1VTBtelU1NVZuWXFYNnpWTWpCWnJIc3NtOERCUjVXandWVzNxZE9pN2FXbXJaaXlVOVZScFJlamVjNmxienB3dENYREZFUWRNZ3pzUT09LS1OUW9lTFc2YXowK1ZaOTByUkVNRUxnPT0%3D--d8acc37630fc8955d1e230f2c02bc52796090b51;
|
120
|
+
domain=.bugsnag.com; path=/; expires=Tue, 09 Oct 2018 14:20:15 -0000; secure;
|
121
|
+
HttpOnly; SameSite=Lax
|
122
|
+
X-Request-Id:
|
123
|
+
- 54bdd096-ce64-405f-babc-9f612c33ecec
|
124
|
+
X-Runtime:
|
125
|
+
- '0.286369'
|
126
|
+
Vary:
|
127
|
+
- Origin
|
128
|
+
X-Ratelimit-Limit:
|
129
|
+
- '10'
|
130
|
+
X-Ratelimit-Remaining:
|
131
|
+
- '4'
|
132
|
+
Content-Security-Policy:
|
133
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
134
|
+
connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
|
135
|
+
https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
|
136
|
+
''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
137
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
138
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
139
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
140
|
+
X-Content-Type-Options:
|
141
|
+
- nosniff
|
142
|
+
X-Download-Options:
|
143
|
+
- noopen
|
144
|
+
X-Frame-Options:
|
145
|
+
- DENY
|
146
|
+
X-Permitted-Cross-Domain-Policies:
|
147
|
+
- none
|
148
|
+
X-Xss-Protection:
|
149
|
+
- 1; mode=block
|
150
|
+
X-Robots-Tag:
|
151
|
+
- noindex, nofollow
|
152
|
+
Strict-Transport-Security:
|
153
|
+
- max-age=31536000
|
154
|
+
Via:
|
155
|
+
- 1.1 google
|
156
|
+
Alt-Svc:
|
157
|
+
- clear
|
158
|
+
Transfer-Encoding:
|
159
|
+
- chunked
|
160
|
+
body:
|
161
|
+
encoding: ASCII-8BIT
|
162
|
+
string: '{"id":"59db859ec1951b0026d5a31c","name":"testOrg","slug":"testorg-27","creator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL"},"created_at":"2017-10-09T14:20:14.089Z","updated_at":"2017-10-09T14:20:14.187Z","auto_upgrade":true,"upgrade_url":"https://api.bugsnag.com/settings/testorg-27/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","billing_emails":["BUGSNAG_USER_EMAIL"]}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Mon, 09 Oct 2017 14:20:14 GMT
|
165
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,165 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.bugsnag.com/organizations
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"testOrg"}'
|
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
|
+
- Basic YWxleCt0ZXN0QGJ1Z3NuYWcuY29tOkNvc21vcG9saXRhblBlYXNlbnQ=
|
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: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Server:
|
28
|
+
- nginx
|
29
|
+
Date:
|
30
|
+
- Mon, 09 Oct 2017 14:20:12 GMT
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- W/"17b9414eb1d84ddffa5eedeff3b3cd81"
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
Set-Cookie:
|
38
|
+
- _bugsnag_session_2=Z2VkTncyb2k4RnJMTnBLWmxoMDREU2xnUXdFU085bmdnUUVML1VwVkxaSHo1SFpUSGZLYTFsN1NFajNCVEFDeFZjelRBdDFHbGVldzYyd3BMd0dXTzdUTUNpRlN1WTVvV1BuMUVIZjJQRVdLbnM5dWZvUGpTczJYNGNoa05iSE5pTDIvUkpFZHNUZytjWG5RMDh4cjdFaEdHOXlsQnlEZE9aNnlhbnVWaDlKSHFLRXBxak56emFya2xnVjVBZE9vYitLdFd4RFoxenlFRGQ0djlXMXlSUT09LS1aQnNlS3BOcnpjNnoyekg4WllvREdRPT0%3D--bbfebe0ea64e1eb7d946390823ab623709b9ae8c;
|
39
|
+
domain=.bugsnag.com; path=/; expires=Tue, 09 Oct 2018 14:20:12 -0000; secure;
|
40
|
+
HttpOnly; SameSite=Lax
|
41
|
+
X-Request-Id:
|
42
|
+
- 527e0bd2-ac21-420a-8059-3e6f34ebed7d
|
43
|
+
X-Runtime:
|
44
|
+
- '1.101822'
|
45
|
+
Vary:
|
46
|
+
- Origin
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '10'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '7'
|
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
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
79
|
+
body:
|
80
|
+
encoding: ASCII-8BIT
|
81
|
+
string: '{"id":"59db859cc1951b0021d5ddc8","name":"testOrg","slug":"testorg-26","creator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL"},"created_at":"2017-10-09T14:20:12.051Z","updated_at":"2017-10-09T14:20:12.149Z","auto_upgrade":true,"upgrade_url":"https://api.bugsnag.com/settings/testorg-26/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","billing_emails":["BUGSNAG_USER_EMAIL"]}'
|
82
|
+
http_version:
|
83
|
+
recorded_at: Mon, 09 Oct 2017 14:20:12 GMT
|
84
|
+
- request:
|
85
|
+
method: patch
|
86
|
+
uri: https://api.bugsnag.com/organizations/59db859cc1951b0021d5ddc8
|
87
|
+
body:
|
88
|
+
encoding: UTF-8
|
89
|
+
string: '{"invoice_address":"test_string","name":"updated_name","auto_upgrade":false}'
|
90
|
+
headers:
|
91
|
+
User-Agent:
|
92
|
+
- Bugsnag API Ruby Gem 1.0.3
|
93
|
+
Content-Type:
|
94
|
+
- application/json
|
95
|
+
X-Version:
|
96
|
+
- '2'
|
97
|
+
Authorization:
|
98
|
+
- Basic YWxleCt0ZXN0QGJ1Z3NuYWcuY29tOkNvc21vcG9saXRhblBlYXNlbnQ=
|
99
|
+
Accept-Encoding:
|
100
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
101
|
+
Accept:
|
102
|
+
- "*/*"
|
103
|
+
response:
|
104
|
+
status:
|
105
|
+
code: 200
|
106
|
+
message: OK
|
107
|
+
headers:
|
108
|
+
Server:
|
109
|
+
- nginx
|
110
|
+
Date:
|
111
|
+
- Mon, 09 Oct 2017 14:20:13 GMT
|
112
|
+
Content-Type:
|
113
|
+
- application/json; charset=utf-8
|
114
|
+
Etag:
|
115
|
+
- W/"b6da0f25289ba17971be692b9c264ef5"
|
116
|
+
Cache-Control:
|
117
|
+
- max-age=0, private, must-revalidate
|
118
|
+
Set-Cookie:
|
119
|
+
- _bugsnag_session_2=VnAwZ2dHbit1ZWhwODdLRW1tZzhSNWRNSHM4TTlYSXdwN0VKU1M5TGNJTDNxUnFLaVlhQkdNdlBwQnlZaG5GSVJtcnhZdEduZUh6T3U0OHZrenNYWklpVEdTNXRiWUI3NVh1NmswbHNHOFZxSk5XRUhXWEZFMzcxR1ljZW1aMGR5QXIvOUowVzVEM3ZVTzhlbm5oODJJTXJYZGtydFlaVXI1eU5XclE5WTNKRFd5Z1ZnUXFkcTRzNUQzaHNFUm1TU1J5T3RiOEdUWHJrTE13Ujc2b1c4Zz09LS1lNFNDNWtzQkJ5SnpLdW9pb25Yd0dBPT0%3D--84fa37bd36f2812d3ac6789809743db0b4976c98;
|
120
|
+
domain=.bugsnag.com; path=/; expires=Tue, 09 Oct 2018 14:20:13 -0000; secure;
|
121
|
+
HttpOnly; SameSite=Lax
|
122
|
+
X-Request-Id:
|
123
|
+
- ad380df2-35a8-4115-8805-2409b21ca93a
|
124
|
+
X-Runtime:
|
125
|
+
- '0.298303'
|
126
|
+
Vary:
|
127
|
+
- Origin
|
128
|
+
X-Ratelimit-Limit:
|
129
|
+
- '10'
|
130
|
+
X-Ratelimit-Remaining:
|
131
|
+
- '6'
|
132
|
+
Content-Security-Policy:
|
133
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
134
|
+
connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
|
135
|
+
https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
|
136
|
+
''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
137
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
138
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
139
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
140
|
+
X-Content-Type-Options:
|
141
|
+
- nosniff
|
142
|
+
X-Download-Options:
|
143
|
+
- noopen
|
144
|
+
X-Frame-Options:
|
145
|
+
- DENY
|
146
|
+
X-Permitted-Cross-Domain-Policies:
|
147
|
+
- none
|
148
|
+
X-Xss-Protection:
|
149
|
+
- 1; mode=block
|
150
|
+
X-Robots-Tag:
|
151
|
+
- noindex, nofollow
|
152
|
+
Strict-Transport-Security:
|
153
|
+
- max-age=31536000
|
154
|
+
Via:
|
155
|
+
- 1.1 google
|
156
|
+
Alt-Svc:
|
157
|
+
- clear
|
158
|
+
Transfer-Encoding:
|
159
|
+
- chunked
|
160
|
+
body:
|
161
|
+
encoding: ASCII-8BIT
|
162
|
+
string: '{"id":"59db859cc1951b0021d5ddc8","name":"updated_name","slug":"updated-name-4","creator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL"},"created_at":"2017-10-09T14:20:12.051Z","updated_at":"2017-10-09T14:20:13.476Z","auto_upgrade":false,"upgrade_url":"https://api.bugsnag.com/settings/updated-name-4/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","billing_emails":["BUGSNAG_USER_EMAIL"]}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Mon, 09 Oct 2017 14:20:12 GMT
|
165
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.bugsnag.com/organizations/BUGSNAG_ORG_ID/projects
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"testProject","type":"other"}'
|
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: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Server:
|
28
|
+
- nginx
|
29
|
+
Date:
|
30
|
+
- Mon, 09 Oct 2017 14:20:04 GMT
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- W/"4052e7a4703ed04772f8d329b333d2e5"
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- e8c0eba8-fcf0-4b04-ae32-4e1073b8b74d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.498425'
|
41
|
+
Vary:
|
42
|
+
- Origin
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '3'
|
47
|
+
Content-Security-Policy:
|
48
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
49
|
+
connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
|
50
|
+
https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
|
51
|
+
''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
52
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
53
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
54
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
55
|
+
X-Content-Type-Options:
|
56
|
+
- nosniff
|
57
|
+
X-Download-Options:
|
58
|
+
- noopen
|
59
|
+
X-Frame-Options:
|
60
|
+
- DENY
|
61
|
+
X-Permitted-Cross-Domain-Policies:
|
62
|
+
- none
|
63
|
+
X-Xss-Protection:
|
64
|
+
- 1; mode=block
|
65
|
+
X-Robots-Tag:
|
66
|
+
- noindex, nofollow
|
67
|
+
Strict-Transport-Security:
|
68
|
+
- max-age=31536000
|
69
|
+
Via:
|
70
|
+
- 1.1 google
|
71
|
+
Alt-Svc:
|
72
|
+
- clear
|
73
|
+
Transfer-Encoding:
|
74
|
+
- chunked
|
75
|
+
body:
|
76
|
+
encoding: ASCII-8BIT
|
77
|
+
string: '{"id":"59db8594562ced002210765c","slug":"testproject-21","name":"testProject","api_key":"384434dd535d5358f7386e399ec2007f","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-10-09T14:20:04.766Z","updated_at":"2017-10-09T14:20:04.766Z","errors_url":"https://api.bugsnag.com/projects/59db8594562ced002210765c/errors","events_url":"https://api.bugsnag.com/projects/59db8594562ced002210765c/events","url":"https://api.bugsnag.com/projects/59db8594562ced002210765c","html_url":"https://app.bugsnag.com/testorg-6/testproject-21","open_error_count":0,"collaborators_count":3,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Mon, 09 Oct 2017 14:20:04 GMT
|
80
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,151 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.bugsnag.com/organizations/BUGSNAG_ORG_ID/projects
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"testProject","type":"other"}'
|
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: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Server:
|
28
|
+
- nginx
|
29
|
+
Date:
|
30
|
+
- Mon, 09 Oct 2017 14:20:02 GMT
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- W/"38f18a7425e71222d55f823df81196b2"
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 55cdfa19-4141-42a8-9ba9-7db16ec9fb96
|
39
|
+
X-Runtime:
|
40
|
+
- '0.473145'
|
41
|
+
Vary:
|
42
|
+
- Origin
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '7'
|
47
|
+
Content-Security-Policy:
|
48
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
49
|
+
connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
|
50
|
+
https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
|
51
|
+
''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
52
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
53
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
54
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
55
|
+
X-Content-Type-Options:
|
56
|
+
- nosniff
|
57
|
+
X-Download-Options:
|
58
|
+
- noopen
|
59
|
+
X-Frame-Options:
|
60
|
+
- DENY
|
61
|
+
X-Permitted-Cross-Domain-Policies:
|
62
|
+
- none
|
63
|
+
X-Xss-Protection:
|
64
|
+
- 1; mode=block
|
65
|
+
X-Robots-Tag:
|
66
|
+
- noindex, nofollow
|
67
|
+
Strict-Transport-Security:
|
68
|
+
- max-age=31536000
|
69
|
+
Via:
|
70
|
+
- 1.1 google
|
71
|
+
Alt-Svc:
|
72
|
+
- clear
|
73
|
+
Transfer-Encoding:
|
74
|
+
- chunked
|
75
|
+
body:
|
76
|
+
encoding: ASCII-8BIT
|
77
|
+
string: '{"id":"59db8591901da0001b1eb516","slug":"testproject-19","name":"testProject","api_key":"7d4b8ece0f1cc1f134117ff52a6114ac","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-10-09T14:20:02.028Z","updated_at":"2017-10-09T14:20:02.028Z","errors_url":"https://api.bugsnag.com/projects/59db8591901da0001b1eb516/errors","events_url":"https://api.bugsnag.com/projects/59db8591901da0001b1eb516/events","url":"https://api.bugsnag.com/projects/59db8591901da0001b1eb516","html_url":"https://app.bugsnag.com/testorg-6/testproject-19","open_error_count":0,"collaborators_count":3,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Mon, 09 Oct 2017 14:20:01 GMT
|
80
|
+
- request:
|
81
|
+
method: delete
|
82
|
+
uri: https://api.bugsnag.com/projects/59db8591901da0001b1eb516
|
83
|
+
body:
|
84
|
+
encoding: UTF-8
|
85
|
+
string: "{}"
|
86
|
+
headers:
|
87
|
+
User-Agent:
|
88
|
+
- Bugsnag API Ruby Gem 1.0.3
|
89
|
+
Content-Type:
|
90
|
+
- application/json
|
91
|
+
X-Version:
|
92
|
+
- '2'
|
93
|
+
Authorization:
|
94
|
+
- token BUGSNAG_AUTH_TOKEN
|
95
|
+
Accept-Encoding:
|
96
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
97
|
+
Accept:
|
98
|
+
- "*/*"
|
99
|
+
response:
|
100
|
+
status:
|
101
|
+
code: 204
|
102
|
+
message: No Content
|
103
|
+
headers:
|
104
|
+
Server:
|
105
|
+
- nginx
|
106
|
+
Date:
|
107
|
+
- Mon, 09 Oct 2017 14:20:02 GMT
|
108
|
+
Cache-Control:
|
109
|
+
- no-cache
|
110
|
+
X-Request-Id:
|
111
|
+
- 1b8c916c-bad4-4fe5-b949-192559e8cdee
|
112
|
+
X-Runtime:
|
113
|
+
- '0.415988'
|
114
|
+
Vary:
|
115
|
+
- Origin
|
116
|
+
X-Ratelimit-Limit:
|
117
|
+
- '10'
|
118
|
+
X-Ratelimit-Remaining:
|
119
|
+
- '6'
|
120
|
+
Content-Security-Policy:
|
121
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
122
|
+
connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
|
123
|
+
https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
|
124
|
+
''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
125
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
126
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
127
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
128
|
+
X-Content-Type-Options:
|
129
|
+
- nosniff
|
130
|
+
X-Download-Options:
|
131
|
+
- noopen
|
132
|
+
X-Frame-Options:
|
133
|
+
- DENY
|
134
|
+
X-Permitted-Cross-Domain-Policies:
|
135
|
+
- none
|
136
|
+
X-Xss-Protection:
|
137
|
+
- 1; mode=block
|
138
|
+
X-Robots-Tag:
|
139
|
+
- noindex, nofollow
|
140
|
+
Strict-Transport-Security:
|
141
|
+
- max-age=31536000
|
142
|
+
Via:
|
143
|
+
- 1.1 google
|
144
|
+
Alt-Svc:
|
145
|
+
- clear
|
146
|
+
body:
|
147
|
+
encoding: UTF-8
|
148
|
+
string: ''
|
149
|
+
http_version:
|
150
|
+
recorded_at: Mon, 09 Oct 2017 14:20:01 GMT
|
151
|
+
recorded_with: VCR 2.9.3
|