kopia lustrzana https://github.com/halcy/Mastodon.py
498 wiersze
17 KiB
YAML
498 wiersze
17 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.04, cache_generate.active_support;dur=1.67,
|
|
cache_write.active_support;dur=0.09, instantiation.active_record;dur=0.31,
|
|
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=4.31,
|
|
process_action.action_controller;dur=24.95
|
|
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.328803Z'
|
|
X-Request-Id:
|
|
- ccd0bc04-ed62-4b9d-9ec7-937d050c86de
|
|
X-Runtime:
|
|
- '0.045689'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: reblogs=1¬ify=0
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate, br
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '18'
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
User-Agent:
|
|
- tests/v311
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/accounts/115033965466813222/follow
|
|
response:
|
|
body:
|
|
string: '{"id":"115033965466813222","following":true,"showing_reblogs":true,"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:
|
|
- '292'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"2bdbe91ab3d01d6ec69a55952414f21e"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=8.01, cache_generate.active_support;dur=0.90,
|
|
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.47,
|
|
start_processing.action_controller;dur=0.00, transaction.active_record;dur=7.75,
|
|
cache_delete.active_support;dur=0.03, cache_read_multi.active_support;dur=0.03,
|
|
cache_write_multi.active_support;dur=0.05, render.active_model_serializers;dur=0.14,
|
|
process_action.action_controller;dur=43.93
|
|
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.394833Z'
|
|
X-Request-Id:
|
|
- ad86ae7e-0d4b-49ac-8c91-b3b1d499c256
|
|
X-Runtime:
|
|
- '0.063621'
|
|
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/unpin
|
|
response:
|
|
body:
|
|
string: '{"id":"115033965466813222","following":true,"showing_reblogs":true,"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:
|
|
- '292'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"2bdbe91ab3d01d6ec69a55952414f21e"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=1.59, cache_generate.active_support;dur=0.76,
|
|
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.36,
|
|
start_processing.action_controller;dur=0.00, 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=28.20
|
|
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.472015Z'
|
|
X-Request-Id:
|
|
- 4394ebc8-a173-4edb-ba71-6efd343d7a40
|
|
X-Runtime:
|
|
- '0.049252'
|
|
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/pin
|
|
response:
|
|
body:
|
|
string: '{"id":"115033965466813222","following":true,"showing_reblogs":true,"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":true,"note":""}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '291'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"e3a19e232bccf060606df4838c63e180"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=6.53, cache_generate.active_support;dur=0.81,
|
|
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.37,
|
|
start_processing.action_controller;dur=0.00, transaction.active_record;dur=5.75,
|
|
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.15,
|
|
process_action.action_controller;dur=34.91
|
|
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.530729Z'
|
|
X-Request-Id:
|
|
- 507f4761-61f0-429a-a8fe-e188eabd399a
|
|
X-Runtime:
|
|
- '0.053475'
|
|
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
|
|
User-Agent:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/endorsements
|
|
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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]}]'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '743'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"891e909f588f5cbc23d0b5882028c6ad"
|
|
Link:
|
|
- <http://localhost:3000/api/v1/endorsements?since_id=115033965466813222>; rel="prev"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.03, sql.active_record;dur=1.21, cache_generate.active_support;dur=1.50,
|
|
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.42,
|
|
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=2.27,
|
|
process_action.action_controller;dur=27.75
|
|
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.602552Z'
|
|
X-Request-Id:
|
|
- 4497bbb0-fc00-4792-8547-60714db5da10
|
|
X-Runtime:
|
|
- '0.057320'
|
|
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/unpin
|
|
response:
|
|
body:
|
|
string: '{"id":"115033965466813222","following":true,"showing_reblogs":true,"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:
|
|
- '292'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"2bdbe91ab3d01d6ec69a55952414f21e"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=5.94, cache_generate.active_support;dur=0.91,
|
|
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.39,
|
|
start_processing.action_controller;dur=0.00, transaction.active_record;dur=4.84,
|
|
cache_delete.active_support;dur=0.02, cache_read_multi.active_support;dur=0.02,
|
|
cache_write_multi.active_support;dur=0.05, render.active_model_serializers;dur=0.14,
|
|
process_action.action_controller;dur=31.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-08-15T17:35:00.673497Z'
|
|
X-Request-Id:
|
|
- ef9e1afc-256c-4e4e-89c7-92b969384c54
|
|
X-Runtime:
|
|
- '0.050895'
|
|
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
|
|
User-Agent:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/endorsements
|
|
response:
|
|
body:
|
|
string: '[]'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Length:
|
|
- '2'
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Server-Timing:
|
|
- cache_read.active_support;dur=0.02, sql.active_record;dur=0.75, cache_generate.active_support;dur=0.88,
|
|
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.21,
|
|
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.04,
|
|
process_action.action_controller;dur=22.70
|
|
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.737990Z'
|
|
X-Request-Id:
|
|
- 4cbfaf10-7c92-4bf6-bc0b-36ed117dd4d3
|
|
X-Runtime:
|
|
- '0.041939'
|
|
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/unfollow
|
|
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=6.70, cache_generate.active_support;dur=0.87,
|
|
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.62,
|
|
start_processing.action_controller;dur=0.00, transaction.active_record;dur=17.48,
|
|
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.15,
|
|
process_action.action_controller;dur=46.64
|
|
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.785628Z'
|
|
X-Request-Id:
|
|
- 4597564d-5055-4823-bbbe-97889b2179e8
|
|
X-Runtime:
|
|
- '0.065479'
|
|
X-XSS-Protection:
|
|
- '0'
|
|
vary:
|
|
- Authorization, Origin
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|