61 líneas
2,6 KiB
YAML
61 líneas
2,6 KiB
YAML
|
interactions:
|
||
|
- request:
|
||
|
body: subscription%5Bkeys%5D%5Bp256dh%5D=BN2C9y4bkh%2F4nE00yBj6MtIhI%2Bs2ZZsV2uDjzmlpNez5Y%2BL72Myw2T1B7wzPr4bnJZTjTuk6QorSXzOKignYviE%3D&subscription%5Bkeys%5D%5Bauth%5D=IRHAwv4FlkgqOeIFAStUFA%3D%3D&subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com
|
||
|
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]
|
||
|
User-Agent: [python-requests/2.9.1]
|
||
|
method: POST
|
||
|
uri: http://localhost:3000/api/v1/push/subscription
|
||
|
response:
|
||
|
body: {string: '{"id":9,"endpoint":"https://example.com","alerts":{},"server_key":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'}
|
||
|
headers:
|
||
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
||
|
Content-Type: [application/json; charset=utf-8]
|
||
|
ETag: [W/"03197a3e0be5931be8c9e5de50a5decd"]
|
||
|
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]
|
||
|
X-Request-Id: [b29b0737-bd98-49b1-b20b-b26ef35b62ac]
|
||
|
X-Runtime: ['0.039190']
|
||
|
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]
|
||
|
User-Agent: [python-requests/2.9.1]
|
||
|
method: GET
|
||
|
uri: http://localhost:3000/api/v1/push/subscription
|
||
|
response:
|
||
|
body: {string: '{"id":9,"endpoint":"https://example.com","alerts":{},"server_key":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'}
|
||
|
headers:
|
||
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
||
|
Content-Type: [application/json; charset=utf-8]
|
||
|
ETag: [W/"03197a3e0be5931be8c9e5de50a5decd"]
|
||
|
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]
|
||
|
X-Request-Id: [75c9bcf7-8ac4-449e-b590-0f728aa475cb]
|
||
|
X-Runtime: ['0.020819']
|
||
|
X-XSS-Protection: [1; mode=block]
|
||
|
content-length: ['157']
|
||
|
status: {code: 200, message: OK}
|
||
|
version: 1
|