2018-06-05 22:52:18 +02:00
|
|
|
interactions:
|
|
|
|
- request:
|
2019-10-11 23:59:24 +02:00
|
|
|
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BE5DCzM%2FN5hRDec%2F%2BsHLm7xTpOvwqkj1Dx0F9Sz5DFaf2BpmcwFZzYyy1GlKyfznQKkL%2FsElV6yqdxW7CE8O56Y%3D&subscription%5Bkeys%5D%5Bauth%5D=p4SQFog4j2x12srlDe3Q3g%3D%3D
|
2018-06-05 22:52:18 +02:00
|
|
|
headers:
|
|
|
|
Accept: ['*/*']
|
|
|
|
Accept-Encoding: ['gzip, deflate']
|
|
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
|
|
|
|
Connection: [keep-alive]
|
2019-06-22 23:16:47 +02:00
|
|
|
Content-Length: ['248']
|
2018-06-05 22:52:18 +02:00
|
|
|
Content-Type: [application/x-www-form-urlencoded]
|
2018-07-14 01:07:26 +02:00
|
|
|
User-Agent: [python-requests/2.18.4]
|
2018-06-05 22:52:18 +02:00
|
|
|
method: POST
|
|
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
|
|
response:
|
2019-10-11 23:59:24 +02:00
|
|
|
body: {string: '{"id":45,"endpoint":"https://example.com","alerts":{},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'}
|
2018-06-05 22:52:18 +02:00
|
|
|
headers:
|
2019-06-22 15:28:27 +02:00
|
|
|
Cache-Control: ['no-cache, no-store']
|
2018-06-05 22:52:18 +02:00
|
|
|
Content-Type: [application/json; charset=utf-8]
|
|
|
|
Referrer-Policy: [strict-origin-when-cross-origin]
|
|
|
|
Transfer-Encoding: [chunked]
|
|
|
|
Vary: ['Accept-Encoding, Origin']
|
|
|
|
X-Content-Type-Options: [nosniff]
|
|
|
|
X-Download-Options: [noopen]
|
|
|
|
X-Frame-Options: [SAMEORIGIN]
|
|
|
|
X-Permitted-Cross-Domain-Policies: [none]
|
2019-10-11 23:59:24 +02:00
|
|
|
X-Request-Id: [4fd1bf08-e449-44e7-b1c8-c247c17ca3dc]
|
|
|
|
X-Runtime: ['0.030309']
|
2018-06-05 22:52:18 +02:00
|
|
|
X-XSS-Protection: [1; mode=block]
|
2019-06-22 23:16:47 +02:00
|
|
|
content-length: ['158']
|
2018-06-05 22:52:18 +02:00
|
|
|
status: {code: 200, message: OK}
|
|
|
|
- request:
|
|
|
|
body: null
|
|
|
|
headers:
|
|
|
|
Accept: ['*/*']
|
|
|
|
Accept-Encoding: ['gzip, deflate']
|
|
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
|
|
|
|
Connection: [keep-alive]
|
|
|
|
Content-Length: ['0']
|
2018-07-14 01:07:26 +02:00
|
|
|
User-Agent: [python-requests/2.18.4]
|
2018-06-05 22:52:18 +02:00
|
|
|
method: DELETE
|
|
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
|
|
response:
|
|
|
|
body: {string: '{}'}
|
|
|
|
headers:
|
2019-06-22 15:28:27 +02:00
|
|
|
Cache-Control: ['no-cache, no-store']
|
2018-06-05 22:52:18 +02:00
|
|
|
Content-Type: [application/json; charset=utf-8]
|
|
|
|
Referrer-Policy: [strict-origin-when-cross-origin]
|
|
|
|
Transfer-Encoding: [chunked]
|
|
|
|
Vary: ['Accept-Encoding, Origin']
|
|
|
|
X-Content-Type-Options: [nosniff]
|
|
|
|
X-Download-Options: [noopen]
|
|
|
|
X-Frame-Options: [SAMEORIGIN]
|
|
|
|
X-Permitted-Cross-Domain-Policies: [none]
|
2019-10-11 23:59:24 +02:00
|
|
|
X-Request-Id: [8808305b-e462-4586-bcdc-0cadad478708]
|
|
|
|
X-Runtime: ['0.037431']
|
2018-06-05 22:52:18 +02:00
|
|
|
X-XSS-Protection: [1; mode=block]
|
|
|
|
content-length: ['2']
|
|
|
|
status: {code: 200, message: OK}
|
|
|
|
- request:
|
|
|
|
body: null
|
|
|
|
headers:
|
|
|
|
Accept: ['*/*']
|
|
|
|
Accept-Encoding: ['gzip, deflate']
|
|
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
|
|
|
|
Connection: [keep-alive]
|
2018-07-14 01:07:26 +02:00
|
|
|
User-Agent: [python-requests/2.18.4]
|
2018-06-05 22:52:18 +02:00
|
|
|
method: GET
|
|
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
|
|
response:
|
|
|
|
body: {string: '{"error":"Record not found"}'}
|
|
|
|
headers:
|
2019-06-22 15:28:27 +02:00
|
|
|
Cache-Control: ['no-cache, no-store']
|
2018-06-05 22:52:18 +02:00
|
|
|
Content-Type: [application/json; charset=utf-8]
|
|
|
|
Referrer-Policy: [strict-origin-when-cross-origin]
|
|
|
|
Transfer-Encoding: [chunked]
|
|
|
|
Vary: ['Accept-Encoding, Origin']
|
|
|
|
X-Content-Type-Options: [nosniff]
|
|
|
|
X-Download-Options: [noopen]
|
|
|
|
X-Frame-Options: [SAMEORIGIN]
|
|
|
|
X-Permitted-Cross-Domain-Policies: [none]
|
2019-10-11 23:59:24 +02:00
|
|
|
X-Request-Id: [7acba829-14de-466f-95b6-12a641ffdee9]
|
|
|
|
X-Runtime: ['0.015415']
|
2018-06-05 22:52:18 +02:00
|
|
|
X-XSS-Protection: [1; mode=block]
|
|
|
|
content-length: ['28']
|
|
|
|
status: {code: 404, message: Not Found}
|
|
|
|
version: 1
|