kopia lustrzana https://github.com/halcy/Mastodon.py
188 wiersze
6.9 KiB
YAML
188 wiersze
6.9 KiB
YAML
interactions:
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate, br
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
|
|
Connection:
|
|
- keep-alive
|
|
User-Agent:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/accounts/verify_credentials
|
|
response:
|
|
body:
|
|
string: '{"id":"115045157726281124","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-17T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","uri":"http://localhost:3000/users/admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"hide_collections":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0,"hide_collections":null,"discoverable":null,"indexable":false,"attribution_domains":[]},"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
|
|
headers:
|
|
Content-Length:
|
|
- '1027'
|
|
cache-control:
|
|
- private, no-store
|
|
content-security-policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
content-type:
|
|
- application/json; charset=utf-8
|
|
etag:
|
|
- W/"f1be143f60ef51d99a3fdb4ce8158ab1"
|
|
referrer-policy:
|
|
- strict-origin-when-cross-origin
|
|
server-timing:
|
|
- cache_read.active_support;dur=0.05, sql.active_record;dur=1.21, cache_generate.active_support;dur=1.39,
|
|
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.24,
|
|
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=4.60,
|
|
process_action.action_controller;dur=29.79
|
|
vary:
|
|
- Authorization, Origin
|
|
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-08-17T18:45:00.384968Z'
|
|
x-request-id:
|
|
- f3a5f767-fdbf-4b91-9c1b-cc7980827ad0
|
|
x-runtime:
|
|
- '0.047100'
|
|
x-xss-protection:
|
|
- '0'
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate, br
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '0'
|
|
User-Agent:
|
|
- tests/v311
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/accounts/115045157726281124/block
|
|
response:
|
|
body:
|
|
string: '{"id":"115045157726281124","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":true,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}'
|
|
headers:
|
|
Content-Length:
|
|
- '293'
|
|
cache-control:
|
|
- private, no-store
|
|
content-security-policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
content-type:
|
|
- application/json; charset=utf-8
|
|
etag:
|
|
- W/"b80a83ca5b48b9de3d61d7257dcf75f8"
|
|
referrer-policy:
|
|
- strict-origin-when-cross-origin
|
|
server-timing:
|
|
- cache_read.active_support;dur=0.03, sql.active_record;dur=9.67, cache_generate.active_support;dur=1.08,
|
|
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.32,
|
|
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
|
|
transaction.active_record;dur=7.78, cache_delete.active_support;dur=0.03,
|
|
cache_read_multi.active_support;dur=0.03, cache_write_multi.active_support;dur=0.07,
|
|
render.active_model_serializers;dur=0.16, process_action.action_controller;dur=53.70
|
|
vary:
|
|
- Authorization, Origin
|
|
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-08-17T18:45:00.454407Z'
|
|
x-request-id:
|
|
- 6b5f479c-ffeb-4802-a854-b0d22d2448c1
|
|
x-runtime:
|
|
- '0.071614'
|
|
x-xss-protection:
|
|
- '0'
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate, br
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '0'
|
|
User-Agent:
|
|
- tests/v311
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/accounts/115045157726281124/unblock
|
|
response:
|
|
body:
|
|
string: '{"id":"115045157726281124","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}'
|
|
headers:
|
|
Content-Length:
|
|
- '294'
|
|
cache-control:
|
|
- private, no-store
|
|
content-security-policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
content-type:
|
|
- application/json; charset=utf-8
|
|
etag:
|
|
- W/"10e3c01158741bacb67dfa4f370e5199"
|
|
referrer-policy:
|
|
- strict-origin-when-cross-origin
|
|
server-timing:
|
|
- cache_read.active_support;dur=0.03, sql.active_record;dur=6.16, cache_generate.active_support;dur=0.90,
|
|
cache_write.active_support;dur=0.08, instantiation.active_record;dur=1.48,
|
|
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
|
|
transaction.active_record;dur=4.09, cache_delete.active_support;dur=0.03,
|
|
cache_read_multi.active_support;dur=0.03, cache_write_multi.active_support;dur=0.06,
|
|
render.active_model_serializers;dur=0.16, process_action.action_controller;dur=41.22
|
|
vary:
|
|
- Authorization, Origin
|
|
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-08-17T18:45:00.536854Z'
|
|
x-request-id:
|
|
- 5309db5d-f626-4557-aa1f-764a487afaa6
|
|
x-runtime:
|
|
- '0.058056'
|
|
x-xss-protection:
|
|
- '0'
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|