bugsnag-api 1.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.buildkite/pipeline.yml +6 -0
- data/.github/ISSUE_TEMPLATE/A.md +14 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +47 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +24 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +16 -0
- data/.github/support.md +19 -0
- data/.github/workflows/tests.yml +53 -0
- data/.rubocop.yml +2 -0
- data/.rubocop_todo.yml +271 -0
- data/CHANGELOG.md +59 -0
- data/CONTRIBUTING.md +40 -0
- data/Gemfile +9 -0
- data/README.md +178 -109
- data/bugsnag-api.gemspec +42 -6
- data/config/.gitignore +1 -0
- data/docker-compose.yml +9 -0
- data/dockerfiles/Dockerfile.audit +5 -0
- data/lib/bugsnag/api/client.rb +32 -10
- data/lib/bugsnag/api/client/collaborators.rb +86 -0
- data/lib/bugsnag/api/client/comments.rb +31 -40
- data/lib/bugsnag/api/client/currentuser.rb +32 -0
- data/lib/bugsnag/api/client/errors.rb +48 -53
- data/lib/bugsnag/api/client/eventfields.rb +49 -0
- data/lib/bugsnag/api/client/events.rb +37 -32
- data/lib/bugsnag/api/client/organizations.rb +45 -0
- data/lib/bugsnag/api/client/pivots.rb +42 -0
- data/lib/bugsnag/api/client/projects.rb +36 -63
- data/lib/bugsnag/api/client/trends.rb +41 -0
- data/lib/bugsnag/api/configuration.rb +1 -1
- data/lib/bugsnag/api/error.rb +5 -1
- data/lib/bugsnag/api/response/raise_error.rb +0 -2
- data/lib/bugsnag/api/version.rb +1 -1
- data/scripts/license_finder.sh +4 -0
- 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 +76 -9
- data/spec/bugsnag/api_spec.rb +2 -0
- data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +36 -26
- data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +36 -26
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/creates_and_returns_a_collaborator.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/invites_multiple_collaborators.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborator/returns_a_collaborator.yml +133 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_organization_collaborators.yml +135 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_project_collaborators.yml +135 -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 +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_delete_collaborator/deletes_a_collaborator.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_update_collaborator_permissions/updates_and_returns_the_collaborator.yml +133 -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 +153 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/creates_a_comment_on_the_error.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comment/retrieves_the_comment_specified.yml +135 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comments/retrieves_all_comments_on_an_error.yml +137 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_delete_comment/deletes_the_comment_and_returns_true.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_update_comment/updates_the_message_on_a_comment.yml +135 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_auth_token/returns_the_organization_the_auth_token_belongs_to.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_user_credentials/returns_users_organizations.yml +71 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_auth_token/lists_current_user_s_projects_in_the_organization.yml +88 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_user_credentials/lists_current_user_s_projects_in_the_organization.yml +91 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_error/returns_a_single_error.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_errors_on_the_project.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_update_errors/updates_and_returns_the_updated_errors.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/lists_all_error_events.yml +73 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_event/returns_the_specified_event.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_events/returns_the_a_list_of_project_errors.yml +73 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_latest_event/returns_the_last_event_on_an_error.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/_create_organization/creates_a_new_organization.yml +71 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_delete_organization/deletes_the_organization.yml +133 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_organization/returns_the_requested_organization.yml +139 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_update_organization/updates_and_returns_the_organization.yml +139 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_new_project.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_delete_project/deletes_the_project.yml +127 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_project/returns_the_requested_project.yml +133 -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 +133 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_update_project/updates_and_returns_the_project.yml +133 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_error_trends_in_bucket_form.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_project_trends_in_bucket_form.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_project_trends_in_resolution_form.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_trends_in_resolution_form.yml +68 -0
- data/spec/spec_helper.rb +32 -30
- metadata +167 -115
- data/.travis.yml +0 -9
- 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,139 @@
|
|
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 2.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
X-Version:
|
15
|
+
- '2'
|
16
|
+
X-Bugsnag-Api:
|
17
|
+
- 'true'
|
18
|
+
Authorization:
|
19
|
+
- Basic c3VwcG9ydEBidWdzbmFnLmNvbTpwYXNzd29yZA==
|
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: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Etag:
|
32
|
+
- W/"867f8f8f0d6fbcfa38d9c11d3a027875"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
Set-Cookie:
|
36
|
+
- _bugsnag_session_2=QkVaREh6ckR0NUZMeDJGVnJCa2JCZWt4SXJhQk5WVGdzL1hlUTN6ZjBWQk1qc2h2bStFYU9YRisvNklEa0lEcCt6MkQ5eEgwSmhHY1ZJOEJDY3VLaXU4YkEvUWtWbk83WVQ4NDhKYythbExkNkNKQ21wYW5ickFESUhmYlI2TmYyenZyZ1prWStka2RxbXlJZkk5aWVmekxGYnpEZUhONWdnS2xxSXVTcjR3dEZBSWlwc2lnd0dlQ2VUNzh4bzRybXczM0ZwZ0VIUE5TT3dOcXBRR3JKZz09LS02aGd2Q3NtTTlod1BiajVzTGNqTDBRPT0%3D--6a987dea0bf51b8d2a46b49c8d732d7ece5b5147;
|
37
|
+
path=/; expires=Wed, 12 Dec 2018 11:52:36 -0000; HttpOnly; SameSite=Lax
|
38
|
+
X-Request-Id:
|
39
|
+
- 9ce59338-0963-4022-b95f-fd6f926b141d
|
40
|
+
X-Runtime:
|
41
|
+
- '1.001746'
|
42
|
+
Vary:
|
43
|
+
- Origin
|
44
|
+
X-Rack-Cors:
|
45
|
+
- miss; no-origin
|
46
|
+
Content-Security-Policy:
|
47
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
48
|
+
connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
|
49
|
+
https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
50
|
+
img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
51
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
52
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
53
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
54
|
+
X-Content-Type-Options:
|
55
|
+
- nosniff
|
56
|
+
X-Download-Options:
|
57
|
+
- noopen
|
58
|
+
X-Frame-Options:
|
59
|
+
- DENY
|
60
|
+
X-Permitted-Cross-Domain-Policies:
|
61
|
+
- none
|
62
|
+
X-Xss-Protection:
|
63
|
+
- 1; mode=block
|
64
|
+
Transfer-Encoding:
|
65
|
+
- chunked
|
66
|
+
body:
|
67
|
+
encoding: UTF-8
|
68
|
+
string: '{"id":"5a2fc304d1befa003981d5a5","name":"testOrg","slug":"testorg-9","creator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL"},"created_at":"2017-12-12T11:52:36.052Z","updated_at":"2017-12-12T11:52:36.164Z","auto_upgrade":true,"upgrade_url":"https://api.bugsnag.com/settings/testorg-9/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","can_start_pro_trial":false,"pro_trial_ends_at":null,"billing_emails":["BUGSNAG_USER_EMAIL"]}'
|
69
|
+
http_version:
|
70
|
+
recorded_at: Tue, 12 Dec 2017 11:52:25 GMT
|
71
|
+
- request:
|
72
|
+
method: get
|
73
|
+
uri: https://api.bugsnag.com/organizations/5a2fc304d1befa003981d5a5
|
74
|
+
body:
|
75
|
+
encoding: US-ASCII
|
76
|
+
string: ''
|
77
|
+
headers:
|
78
|
+
User-Agent:
|
79
|
+
- Bugsnag API Ruby Gem 2.0.1
|
80
|
+
Content-Type:
|
81
|
+
- application/json
|
82
|
+
X-Version:
|
83
|
+
- '2'
|
84
|
+
X-Bugsnag-Api:
|
85
|
+
- 'true'
|
86
|
+
Authorization:
|
87
|
+
- Basic c3VwcG9ydEBidWdzbmFnLmNvbTpwYXNzd29yZA==
|
88
|
+
Accept-Encoding:
|
89
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
90
|
+
Accept:
|
91
|
+
- "*/*"
|
92
|
+
response:
|
93
|
+
status:
|
94
|
+
code: 200
|
95
|
+
message: OK
|
96
|
+
headers:
|
97
|
+
Content-Type:
|
98
|
+
- application/json; charset=utf-8
|
99
|
+
Etag:
|
100
|
+
- W/"867f8f8f0d6fbcfa38d9c11d3a027875"
|
101
|
+
Cache-Control:
|
102
|
+
- max-age=0, private, must-revalidate
|
103
|
+
Set-Cookie:
|
104
|
+
- _bugsnag_session_2=aU1BaTlDUnBtRTNMaWtnQnpYK1FEZEo0dTR3N0V1WElEOHVudTJzUHEzSkZ0S3NLNFlOSmRhbEVSZlZuaFpJU3BseFQ2TTJqUVoxdzNCckZjZG5ndmdGR0hQMWdaMmJ6TmJiWTViME5CNXBiQng4eDBKUEdKV1NkSGl5K2hUa3RkcThUN01JNEdLTDNvVFJQKzY0eWtZTDVpYkFzS3hleVpRR2ZvaEZYYVpweml4a005eWpaZFpuUTgrZHVpeTJ3VFEwUEF3TE5uNldSd0hQb1h3YmJiUT09LS1walZCNG1PRGdIeFZIeDFCTXZOWWtnPT0%3D--a6f0a8fd19fe93972da8f4e19212f5e88599979a;
|
105
|
+
path=/; expires=Wed, 12 Dec 2018 11:52:36 -0000; HttpOnly; SameSite=Lax
|
106
|
+
X-Request-Id:
|
107
|
+
- 93ccdbcf-20a9-4b69-81bc-2d2e824addb5
|
108
|
+
X-Runtime:
|
109
|
+
- '0.386262'
|
110
|
+
Vary:
|
111
|
+
- Origin
|
112
|
+
X-Rack-Cors:
|
113
|
+
- miss; no-origin
|
114
|
+
Content-Security-Policy:
|
115
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
116
|
+
connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
|
117
|
+
https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
118
|
+
img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
119
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
120
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
121
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
122
|
+
X-Content-Type-Options:
|
123
|
+
- nosniff
|
124
|
+
X-Download-Options:
|
125
|
+
- noopen
|
126
|
+
X-Frame-Options:
|
127
|
+
- DENY
|
128
|
+
X-Permitted-Cross-Domain-Policies:
|
129
|
+
- none
|
130
|
+
X-Xss-Protection:
|
131
|
+
- 1; mode=block
|
132
|
+
Transfer-Encoding:
|
133
|
+
- chunked
|
134
|
+
body:
|
135
|
+
encoding: UTF-8
|
136
|
+
string: '{"id":"5a2fc304d1befa003981d5a5","name":"testOrg","slug":"testorg-9","creator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL"},"created_at":"2017-12-12T11:52:36.052Z","updated_at":"2017-12-12T11:52:36.164Z","auto_upgrade":true,"upgrade_url":"https://api.bugsnag.com/settings/testorg-9/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","can_start_pro_trial":false,"pro_trial_ends_at":null,"billing_emails":["BUGSNAG_USER_EMAIL"]}'
|
137
|
+
http_version:
|
138
|
+
recorded_at: Tue, 12 Dec 2017 11:52:25 GMT
|
139
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,139 @@
|
|
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 2.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
X-Version:
|
15
|
+
- '2'
|
16
|
+
X-Bugsnag-Api:
|
17
|
+
- 'true'
|
18
|
+
Authorization:
|
19
|
+
- Basic c3VwcG9ydEBidWdzbmFnLmNvbTpwYXNzd29yZA==
|
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: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Etag:
|
32
|
+
- W/"09dc8d899eb7b4a53ed48923d5d0be37"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
Set-Cookie:
|
36
|
+
- _bugsnag_session_2=L1FGcWEwS0wvbVc5aDRLMmpZaVNWRk5CSE92ZkRzRG40bXU1SUFRVHd1Y1JJempDVTdRbDRXRkxMVzhMaHpJTGprQVNhUjFnL3VwSlJmeUVkTHJQV3RXbXhtWktoR3NXQXp4bm1rVmxJNWxzV3NLSTZqV3NJalNoMkFLdU1GbXhJUUNpZDZSTmpaRGYrcDZSbXdvMEZmNjk4NkVrOWhHZ25HMlZxd1E2bFcrdkVaMWJtVlZMWjk5NnRPUGU3ZGdFTzYzcEplQlNsQnVncHRuRCtlckxLQT09LS1mdnVKZVd3NkdPSmVwM1c5eitLUUxBPT0%3D--9e2f57b9429db45998568681122126be171731d0;
|
37
|
+
path=/; expires=Wed, 12 Dec 2018 11:52:37 -0000; HttpOnly; SameSite=Lax
|
38
|
+
X-Request-Id:
|
39
|
+
- 7da2978a-e5de-41d5-ab93-aa02e4359f5f
|
40
|
+
X-Runtime:
|
41
|
+
- '0.674558'
|
42
|
+
Vary:
|
43
|
+
- Origin
|
44
|
+
X-Rack-Cors:
|
45
|
+
- miss; no-origin
|
46
|
+
Content-Security-Policy:
|
47
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
48
|
+
connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
|
49
|
+
https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
50
|
+
img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
51
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
52
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
53
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
54
|
+
X-Content-Type-Options:
|
55
|
+
- nosniff
|
56
|
+
X-Download-Options:
|
57
|
+
- noopen
|
58
|
+
X-Frame-Options:
|
59
|
+
- DENY
|
60
|
+
X-Permitted-Cross-Domain-Policies:
|
61
|
+
- none
|
62
|
+
X-Xss-Protection:
|
63
|
+
- 1; mode=block
|
64
|
+
Transfer-Encoding:
|
65
|
+
- chunked
|
66
|
+
body:
|
67
|
+
encoding: UTF-8
|
68
|
+
string: '{"id":"5a2fc305d1befa003981d5a9","name":"testOrg","slug":"testorg-10","creator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL"},"created_at":"2017-12-12T11:52:37.340Z","updated_at":"2017-12-12T11:52:37.425Z","auto_upgrade":true,"upgrade_url":"https://api.bugsnag.com/settings/testorg-10/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","can_start_pro_trial":false,"pro_trial_ends_at":null,"billing_emails":["BUGSNAG_USER_EMAIL"]}'
|
69
|
+
http_version:
|
70
|
+
recorded_at: Tue, 12 Dec 2017 11:52:26 GMT
|
71
|
+
- request:
|
72
|
+
method: patch
|
73
|
+
uri: https://api.bugsnag.com/organizations/5a2fc305d1befa003981d5a9
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: '{"invoice_address":"test_string","name":"updated_name","auto_upgrade":false}'
|
77
|
+
headers:
|
78
|
+
User-Agent:
|
79
|
+
- Bugsnag API Ruby Gem 2.0.1
|
80
|
+
Content-Type:
|
81
|
+
- application/json
|
82
|
+
X-Version:
|
83
|
+
- '2'
|
84
|
+
X-Bugsnag-Api:
|
85
|
+
- 'true'
|
86
|
+
Authorization:
|
87
|
+
- Basic c3VwcG9ydEBidWdzbmFnLmNvbTpwYXNzd29yZA==
|
88
|
+
Accept-Encoding:
|
89
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
90
|
+
Accept:
|
91
|
+
- "*/*"
|
92
|
+
response:
|
93
|
+
status:
|
94
|
+
code: 200
|
95
|
+
message: OK
|
96
|
+
headers:
|
97
|
+
Content-Type:
|
98
|
+
- application/json; charset=utf-8
|
99
|
+
Etag:
|
100
|
+
- W/"1cd8c681b73b3b4ce6da6626cb7a11f7"
|
101
|
+
Cache-Control:
|
102
|
+
- max-age=0, private, must-revalidate
|
103
|
+
Set-Cookie:
|
104
|
+
- _bugsnag_session_2=ZUFnYXNxTkVFb3V2YXVleHBhbTFpZ3NVUnJqc3VsZFhad3ZySlBYTXZxWnByNVpqWXV3TXFuRjRzeldMSGtkeERxekJJN0Z2ZHV6R3BqcHdUeElUenREc0xJdHBNOXhkNjlVamVNaGVmVmJ5ZTRGWXNYTU9SV0JHRGpmSDBJT2xaZzB0UmdDcW5VZlV4TGdJT2xJbXRYRDBPYTFKSEp3eXkvNDNuV0xLMVkxQjVkdm55WmVRanNGS2VGaXI3dFQvNCtoS3JTbkpYaTlZNlJwYXRYVW5vZz09LS12MEt3ZFZuSkRCTGZFRmV4NEw5SFRnPT0%3D--64d22dbfcc3b89974156205693744a62f861f432;
|
105
|
+
path=/; expires=Wed, 12 Dec 2018 11:52:38 -0000; HttpOnly; SameSite=Lax
|
106
|
+
X-Request-Id:
|
107
|
+
- 420ba7c0-a9e7-4e14-a1d3-7b3d6832108c
|
108
|
+
X-Runtime:
|
109
|
+
- '0.381432'
|
110
|
+
Vary:
|
111
|
+
- Origin
|
112
|
+
X-Rack-Cors:
|
113
|
+
- miss; no-origin
|
114
|
+
Content-Security-Policy:
|
115
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
116
|
+
connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
|
117
|
+
https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
118
|
+
img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
119
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
120
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
121
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
122
|
+
X-Content-Type-Options:
|
123
|
+
- nosniff
|
124
|
+
X-Download-Options:
|
125
|
+
- noopen
|
126
|
+
X-Frame-Options:
|
127
|
+
- DENY
|
128
|
+
X-Permitted-Cross-Domain-Policies:
|
129
|
+
- none
|
130
|
+
X-Xss-Protection:
|
131
|
+
- 1; mode=block
|
132
|
+
Transfer-Encoding:
|
133
|
+
- chunked
|
134
|
+
body:
|
135
|
+
encoding: UTF-8
|
136
|
+
string: '{"id":"5a2fc305d1befa003981d5a9","name":"updated_name","slug":"updated-name-2","creator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL"},"created_at":"2017-12-12T11:52:37.340Z","updated_at":"2017-12-12T11:52:38.042Z","auto_upgrade":false,"upgrade_url":"https://api.bugsnag.com/settings/updated-name-2/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","can_start_pro_trial":false,"pro_trial_ends_at":null,"billing_emails":["BUGSNAG_USER_EMAIL"]}'
|
137
|
+
http_version:
|
138
|
+
recorded_at: Tue, 12 Dec 2017 11:52:27 GMT
|
139
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,68 @@
|
|
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 2.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
X-Version:
|
15
|
+
- '2'
|
16
|
+
X-Bugsnag-Api:
|
17
|
+
- 'true'
|
18
|
+
Authorization:
|
19
|
+
- token BUGSNAG_AUTH_TOKEN
|
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: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Etag:
|
32
|
+
- W/"66efaa324eda86c1b0b02ed772ddac86"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 947a9730-ccc2-403f-8639-fcb6cdf94e89
|
37
|
+
X-Runtime:
|
38
|
+
- '0.402736'
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
X-Rack-Cors:
|
42
|
+
- miss; no-origin
|
43
|
+
Content-Security-Policy:
|
44
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
45
|
+
connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
|
46
|
+
https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
47
|
+
img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
48
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
49
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
50
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
51
|
+
X-Content-Type-Options:
|
52
|
+
- nosniff
|
53
|
+
X-Download-Options:
|
54
|
+
- noopen
|
55
|
+
X-Frame-Options:
|
56
|
+
- DENY
|
57
|
+
X-Permitted-Cross-Domain-Policies:
|
58
|
+
- none
|
59
|
+
X-Xss-Protection:
|
60
|
+
- 1; mode=block
|
61
|
+
Transfer-Encoding:
|
62
|
+
- chunked
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: '{"id":"5a2fc37fd1befa003981d5b9","slug":"testproject-9","name":"testProject","api_key":"8d884c18c157b78db019266b277daf9e","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-12-12T11:54:39.227Z","updated_at":"2017-12-12T11:54:39.227Z","errors_url":"https://api.bugsnag.com/projects/5a2fc37fd1befa003981d5b9/errors","events_url":"https://api.bugsnag.com/projects/5a2fc37fd1befa003981d5b9/events","url":"https://api.bugsnag.com/projects/5a2fc37fd1befa003981d5b9","html_url":"https://api.bugsnag.com/bugsnag/testproject-9","open_error_count":0,"collaborators_count":2,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
|
66
|
+
http_version:
|
67
|
+
recorded_at: Tue, 12 Dec 2017 11:54:28 GMT
|
68
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,127 @@
|
|
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 2.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
X-Version:
|
15
|
+
- '2'
|
16
|
+
X-Bugsnag-Api:
|
17
|
+
- 'true'
|
18
|
+
Authorization:
|
19
|
+
- token BUGSNAG_AUTH_TOKEN
|
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: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Etag:
|
32
|
+
- W/"e94ed6494dc2680a7e5e80bfcb8fb1ee"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- bab2c7b5-1be8-4967-8064-42bd7df65430
|
37
|
+
X-Runtime:
|
38
|
+
- '0.357678'
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
X-Rack-Cors:
|
42
|
+
- miss; no-origin
|
43
|
+
Content-Security-Policy:
|
44
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
45
|
+
connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
|
46
|
+
https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
47
|
+
img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
48
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
49
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
50
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
51
|
+
X-Content-Type-Options:
|
52
|
+
- nosniff
|
53
|
+
X-Download-Options:
|
54
|
+
- noopen
|
55
|
+
X-Frame-Options:
|
56
|
+
- DENY
|
57
|
+
X-Permitted-Cross-Domain-Policies:
|
58
|
+
- none
|
59
|
+
X-Xss-Protection:
|
60
|
+
- 1; mode=block
|
61
|
+
Transfer-Encoding:
|
62
|
+
- chunked
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: '{"id":"5a2fc37cd1befa003981d5b3","slug":"testproject-6","name":"testProject","api_key":"5329778c8dafb6b594f3aab77dab3089","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-12-12T11:54:36.671Z","updated_at":"2017-12-12T11:54:36.671Z","errors_url":"https://api.bugsnag.com/projects/5a2fc37cd1befa003981d5b3/errors","events_url":"https://api.bugsnag.com/projects/5a2fc37cd1befa003981d5b3/events","url":"https://api.bugsnag.com/projects/5a2fc37cd1befa003981d5b3","html_url":"https://api.bugsnag.com/bugsnag/testproject-6","open_error_count":0,"collaborators_count":2,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
|
66
|
+
http_version:
|
67
|
+
recorded_at: Tue, 12 Dec 2017 11:54:25 GMT
|
68
|
+
- request:
|
69
|
+
method: delete
|
70
|
+
uri: https://api.bugsnag.com/projects/5a2fc37cd1befa003981d5b3
|
71
|
+
body:
|
72
|
+
encoding: UTF-8
|
73
|
+
string: "{}"
|
74
|
+
headers:
|
75
|
+
User-Agent:
|
76
|
+
- Bugsnag API Ruby Gem 2.0.1
|
77
|
+
Content-Type:
|
78
|
+
- application/json
|
79
|
+
X-Version:
|
80
|
+
- '2'
|
81
|
+
X-Bugsnag-Api:
|
82
|
+
- 'true'
|
83
|
+
Authorization:
|
84
|
+
- token BUGSNAG_AUTH_TOKEN
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
+
Accept:
|
88
|
+
- "*/*"
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 204
|
92
|
+
message: No Content
|
93
|
+
headers:
|
94
|
+
Cache-Control:
|
95
|
+
- no-cache
|
96
|
+
X-Request-Id:
|
97
|
+
- 66753d44-6990-45d7-b8d0-5ee9cb38b738
|
98
|
+
X-Runtime:
|
99
|
+
- '0.470776'
|
100
|
+
Vary:
|
101
|
+
- Origin
|
102
|
+
X-Rack-Cors:
|
103
|
+
- miss; no-origin
|
104
|
+
Content-Security-Policy:
|
105
|
+
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
106
|
+
connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
|
107
|
+
https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
108
|
+
img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
|
109
|
+
script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
|
110
|
+
https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
|
111
|
+
https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
|
112
|
+
X-Content-Type-Options:
|
113
|
+
- nosniff
|
114
|
+
X-Download-Options:
|
115
|
+
- noopen
|
116
|
+
X-Frame-Options:
|
117
|
+
- DENY
|
118
|
+
X-Permitted-Cross-Domain-Policies:
|
119
|
+
- none
|
120
|
+
X-Xss-Protection:
|
121
|
+
- 1; mode=block
|
122
|
+
body:
|
123
|
+
encoding: UTF-8
|
124
|
+
string: ''
|
125
|
+
http_version:
|
126
|
+
recorded_at: Tue, 12 Dec 2017 11:54:26 GMT
|
127
|
+
recorded_with: VCR 2.9.3
|