kopia lustrzana https://github.com/halcy/Mastodon.py
188 wiersze
6.8 KiB
YAML
188 wiersze
6.8 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":"115033965466813222","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-15T00: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},"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '1002'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"ff57a4652fc51bf91f85caf39b38ae48"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.04, sql.active_record;dur=1.16, cache_generate.active_support;dur=1.51,
|
|
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.34,
|
|
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=4.40,
|
|
process_action.action_controller;dur=25.62
|
|
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-15T17:35:00.498573Z'
|
|
X-Request-Id:
|
|
- 65b876d8-6f99-4126-94dc-43e9749f9ff3
|
|
X-Runtime:
|
|
- '0.046820'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
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/115033965466813222/block
|
|
response:
|
|
body:
|
|
string: '{"id":"115033965466813222","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:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '293'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"a26babd642b72d3568ab579660c72137"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=7.65, cache_generate.active_support;dur=0.91,
|
|
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.38,
|
|
start_processing.action_controller;dur=0.00, transaction.active_record;dur=6.03,
|
|
cache_delete.active_support;dur=0.04, cache_read_multi.active_support;dur=0.04,
|
|
cache_write_multi.active_support;dur=0.06, render.active_model_serializers;dur=0.14,
|
|
process_action.action_controller;dur=43.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-08-15T17:35:00.565365Z'
|
|
X-Request-Id:
|
|
- 5aa2d636-4153-490e-a803-5b709c9cf488
|
|
X-Runtime:
|
|
- '0.063945'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
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/115033965466813222/unblock
|
|
response:
|
|
body:
|
|
string: '{"id":"115033965466813222","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:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '294'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"fe572ec4cc8d7e18e0f2b66935e77757"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=7.24, cache_generate.active_support;dur=0.91,
|
|
cache_write.active_support;dur=0.07, instantiation.active_record;dur=1.75,
|
|
start_processing.action_controller;dur=0.00, transaction.active_record;dur=3.98,
|
|
cache_delete.active_support;dur=0.04, cache_read_multi.active_support;dur=0.02,
|
|
cache_write_multi.active_support;dur=0.05, render.active_model_serializers;dur=0.15,
|
|
process_action.action_controller;dur=45.22
|
|
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-15T17:35:00.647880Z'
|
|
X-Request-Id:
|
|
- c30f895b-7ef3-437f-a27c-1e5b40b49220
|
|
X-Runtime:
|
|
- '0.064379'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|