kopia lustrzana https://github.com/halcy/Mastodon.py
369 wiersze
12 KiB
YAML
369 wiersze
12 KiB
YAML
interactions:
|
|
- request:
|
|
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BHsLaXtYJqBtJ%2BML0aH7sLgd8%2F38JibACih%2BCquLoSYS25htKVRviy6Ii69LJD60MxKp07GMz%2BJPtd4tv4Wcf1c%3D&subscription%5Bkeys%5D%5Bauth%5D=Nl3FvxjArrB6zSFGg2EfWg%3D%3D&policy=all&data%5Balerts%5D%5Bfollow%5D=0&data%5Balerts%5D%5Bfavourite%5D=0&data%5Balerts%5D%5Breblog%5D=0&data%5Balerts%5D%5Bmention%5D=0
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '387'
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
User-Agent:
|
|
- tests/v311
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
response:
|
|
body:
|
|
string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BE1WVtJ4TtrCv7gVo33aa4Hgc6mtg2W6yJlGGOdj2si5BlgCm8HpmqkdaX5y5ZiPyWcBBb3V0sDOa4GI2r6EylU=","policy":"all"}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '235'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"9d10764f5615700b79183af7c8a6e916"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=8.64, cache_generate.active_support;dur=1.06,
|
|
cache_write.active_support;dur=0.08, instantiation.active_record;dur=4.17,
|
|
start_processing.action_controller;dur=0.00, transaction.active_record;dur=6.19,
|
|
render.active_model_serializers;dur=0.17, process_action.action_controller;dur=40.05
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-RateLimit-Limit:
|
|
- '300'
|
|
X-RateLimit-Remaining:
|
|
- '299'
|
|
X-RateLimit-Reset:
|
|
- '2025-02-13T22:00:00.374288Z'
|
|
X-Request-Id:
|
|
- 07435faf-091a-4271-bff9-bb94b046c383
|
|
X-Runtime:
|
|
- '0.057316'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: policy=all&data%5Balerts%5D%5Bfollow%5D=1&data%5Balerts%5D%5Bfavourite%5D=1&data%5Balerts%5D%5Breblog%5D=1&data%5Balerts%5D%5Bmention%5D=1
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '138'
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
User-Agent:
|
|
- tests/v311
|
|
method: PUT
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
response:
|
|
body:
|
|
string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BE1WVtJ4TtrCv7gVo33aa4Hgc6mtg2W6yJlGGOdj2si5BlgCm8HpmqkdaX5y5ZiPyWcBBb3V0sDOa4GI2r6EylU=","policy":"all"}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '231'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"e722b7615a3d9f475ebd561e0c231278"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=3.71, cache_generate.active_support;dur=1.17,
|
|
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.41,
|
|
start_processing.action_controller;dur=0.00, transaction.active_record;dur=2.92,
|
|
render.active_model_serializers;dur=0.20, process_action.action_controller;dur=26.25
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-RateLimit-Limit:
|
|
- '300'
|
|
X-RateLimit-Remaining:
|
|
- '299'
|
|
X-RateLimit-Reset:
|
|
- '2025-02-13T22:00:00.434131Z'
|
|
X-Request-Id:
|
|
- 953fbdb1-a5f1-4ab3-a293-4b2066de8068
|
|
X-Runtime:
|
|
- '0.041090'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
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:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
response:
|
|
body:
|
|
string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BE1WVtJ4TtrCv7gVo33aa4Hgc6mtg2W6yJlGGOdj2si5BlgCm8HpmqkdaX5y5ZiPyWcBBb3V0sDOa4GI2r6EylU=","policy":"all"}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '231'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"e722b7615a3d9f475ebd561e0c231278"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=0.83, cache_generate.active_support;dur=1.13,
|
|
cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.38,
|
|
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.20,
|
|
process_action.action_controller;dur=19.97
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-RateLimit-Limit:
|
|
- '300'
|
|
X-RateLimit-Remaining:
|
|
- '299'
|
|
X-RateLimit-Reset:
|
|
- '2025-02-13T22:00:00.484677Z'
|
|
X-Request-Id:
|
|
- 820e107d-4aa2-4864-b5a0-842ce6318255
|
|
X-Runtime:
|
|
- '0.035979'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: policy=all&data%5Balerts%5D%5Bfollow%5D=0&data%5Balerts%5D%5Bfavourite%5D=0&data%5Balerts%5D%5Breblog%5D=0&data%5Balerts%5D%5Bmention%5D=0
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '138'
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
User-Agent:
|
|
- tests/v311
|
|
method: PUT
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
response:
|
|
body:
|
|
string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BE1WVtJ4TtrCv7gVo33aa4Hgc6mtg2W6yJlGGOdj2si5BlgCm8HpmqkdaX5y5ZiPyWcBBb3V0sDOa4GI2r6EylU=","policy":"all"}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '235'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"9d10764f5615700b79183af7c8a6e916"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.03, sql.active_record;dur=4.04, cache_generate.active_support;dur=1.01,
|
|
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.46,
|
|
start_processing.action_controller;dur=0.00, transaction.active_record;dur=3.24,
|
|
render.active_model_serializers;dur=0.22, process_action.action_controller;dur=32.14
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-RateLimit-Limit:
|
|
- '300'
|
|
X-RateLimit-Remaining:
|
|
- '299'
|
|
X-RateLimit-Reset:
|
|
- '2025-02-13T22:00:00.532822Z'
|
|
X-Request-Id:
|
|
- a8902989-16a4-4a9e-aca2-99ac0b45e453
|
|
X-Runtime:
|
|
- '0.049961'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
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:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
response:
|
|
body:
|
|
string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BE1WVtJ4TtrCv7gVo33aa4Hgc6mtg2W6yJlGGOdj2si5BlgCm8HpmqkdaX5y5ZiPyWcBBb3V0sDOa4GI2r6EylU=","policy":"all"}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '235'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"9d10764f5615700b79183af7c8a6e916"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.03, sql.active_record;dur=0.87, cache_generate.active_support;dur=1.17,
|
|
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.30,
|
|
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.20,
|
|
process_action.action_controller;dur=20.43
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-RateLimit-Limit:
|
|
- '300'
|
|
X-RateLimit-Remaining:
|
|
- '299'
|
|
X-RateLimit-Reset:
|
|
- '2025-02-13T22:00:00.584108Z'
|
|
X-Request-Id:
|
|
- e3a53095-d467-49d2-8bf2-7aea40741d73
|
|
X-Runtime:
|
|
- '0.036397'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
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:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
response:
|
|
body:
|
|
string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BE1WVtJ4TtrCv7gVo33aa4Hgc6mtg2W6yJlGGOdj2si5BlgCm8HpmqkdaX5y5ZiPyWcBBb3V0sDOa4GI2r6EylU=","policy":"all"}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '235'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"9d10764f5615700b79183af7c8a6e916"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.03, sql.active_record;dur=0.79, cache_generate.active_support;dur=1.00,
|
|
cache_write.active_support;dur=0.09, instantiation.active_record;dur=0.32,
|
|
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.21,
|
|
process_action.action_controller;dur=20.78
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-RateLimit-Limit:
|
|
- '300'
|
|
X-RateLimit-Remaining:
|
|
- '299'
|
|
X-RateLimit-Reset:
|
|
- '2025-02-13T22:00:00.626444Z'
|
|
X-Request-Id:
|
|
- f13f00cb-cc45-4490-a604-c7b34b6da529
|
|
X-Runtime:
|
|
- '0.036664'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|