kopia lustrzana https://github.com/halcy/Mastodon.py
181 wiersze
6.8 KiB
YAML
181 wiersze
6.8 KiB
YAML
interactions:
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
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":"109383664751443295","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@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,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
|
|
headers:
|
|
Cache-Control:
|
|
- no-store
|
|
Content-Security-Policy:
|
|
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
|
|
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
|
|
style-src ''self'' http://localhost:3000 ''nonce-pfW5oFKR2EQvk/D55FdHAA=='';
|
|
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
|
|
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
|
|
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
|
|
ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
|
|
''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
|
|
worker-src ''self'' blob: http://localhost:3000'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"5f1b08410562cb6329b673347086f76f"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Vary:
|
|
- Accept, Origin
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Download-Options:
|
|
- noopen
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-Request-Id:
|
|
- 1d277544-5f76-4a36-8ed6-13cf33fb584b
|
|
X-Runtime:
|
|
- '0.014177'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
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/109383664751443295/block
|
|
response:
|
|
body:
|
|
string: '{"id":"109383664751443295","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":true,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
|
|
headers:
|
|
Cache-Control:
|
|
- no-store
|
|
Content-Security-Policy:
|
|
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
|
|
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
|
|
style-src ''self'' http://localhost:3000 ''nonce-I1QOWlgyquywl0MjowIDcA=='';
|
|
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
|
|
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
|
|
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
|
|
ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
|
|
''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
|
|
worker-src ''self'' blob: http://localhost:3000'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"e68def8a544e5be1eefb56580a5780c1"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Vary:
|
|
- Accept, Origin
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Download-Options:
|
|
- noopen
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-Request-Id:
|
|
- 8c4a829a-eaf6-481a-b25e-2d998453a8a2
|
|
X-Runtime:
|
|
- '0.024495'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
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/109383664751443295/unblock
|
|
response:
|
|
body:
|
|
string: '{"id":"109383664751443295","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
|
|
headers:
|
|
Cache-Control:
|
|
- no-store
|
|
Content-Security-Policy:
|
|
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
|
|
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
|
|
style-src ''self'' http://localhost:3000 ''nonce-Ubf+tTZZyyWK3eaDOg8+DQ=='';
|
|
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
|
|
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
|
|
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
|
|
ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
|
|
''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
|
|
worker-src ''self'' blob: http://localhost:3000'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"fdde9052870e9f115f5c25c05c7e9eef"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Vary:
|
|
- Accept, Origin
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Download-Options:
|
|
- noopen
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-Request-Id:
|
|
- 90b51951-7df9-4a03-94d7-28086dec2571
|
|
X-Runtime:
|
|
- '0.017544'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|