2018-06-05 22:52:18 +02:00
|
|
|
interactions:
|
|
|
|
- request:
|
2018-07-14 01:07:26 +02:00
|
|
|
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BHSgAVMYykgCXIyjGtc4YqPj8GEFC9Frg%2Fzo40TRX3rWxEqFAIVRZke1NIUtHODkw%2BJpvHt6%2FRUhilmG0UmMJOE%3D&subscription%5Bkeys%5D%5Bauth%5D=EI4xq0gaQk9lJxgn7ZGz9g%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]
|
|
|
|
Content-Length: ['246']
|
|
|
|
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:
|
2018-07-14 01:07:26 +02:00
|
|
|
body: {string: '{"id":6,"endpoint":"https://example.com","alerts":{},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'}
|
2018-06-05 22:52:18 +02:00
|
|
|
headers:
|
|
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
|
|
Content-Type: [application/json; charset=utf-8]
|
2018-07-14 01:07:26 +02:00
|
|
|
ETag: [W/"4f035f71f6211ae347a40b0eac415095"]
|
2018-06-05 22:52:18 +02:00
|
|
|
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]
|
2018-07-14 01:07:26 +02:00
|
|
|
X-Request-Id: [0fb35cb9-b35f-4b8e-8739-8b51511bb38d]
|
|
|
|
X-Runtime: ['0.028399']
|
2018-06-05 22:52:18 +02:00
|
|
|
X-XSS-Protection: [1; mode=block]
|
|
|
|
content-length: ['157']
|
|
|
|
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:
|
|
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
|
|
Content-Type: [application/json; charset=utf-8]
|
2018-07-14 01:07:26 +02:00
|
|
|
ETag: [W/"22e009680831e2e6d73ed4c588a7688d"]
|
2018-06-05 22:52:18 +02:00
|
|
|
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]
|
2018-07-14 01:07:26 +02:00
|
|
|
X-Request-Id: [9fd56ca3-f859-4a0b-a8d7-0a1753d812c8]
|
|
|
|
X-Runtime: ['0.020027']
|
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:
|
|
|
|
Cache-Control: [no-cache]
|
|
|
|
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]
|
2018-07-14 01:07:26 +02:00
|
|
|
X-Request-Id: [2332dbd1-64dd-48d2-9ecc-692ad6107d04]
|
|
|
|
X-Runtime: ['0.019242']
|
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
|