kopia lustrzana https://github.com/halcy/Mastodon.py
237 wiersze
11 KiB
YAML
237 wiersze
11 KiB
YAML
interactions:
|
|
- request:
|
|
body: status=Toot%21
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '14'
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
User-Agent:
|
|
- tests/v311
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/statuses
|
|
response:
|
|
body:
|
|
string: '{"id":"111912699739433170","created_at":"2024-02-11T11:51:18.740Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111912699739433170","url":"http://localhost:3000/@mastodonpy_test/111912699739433170","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
|
|
test suite","website":null},"account":{"id":"111912686983985951","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
|
|
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"\u003cp\u003eI
|
|
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/111/912/686/983/985/951/original/d12b874e353776ad.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/111/912/686/983/985/951/original/d12b874e353776ad.jpg","header":"http://localhost:3000/system/accounts/headers/111/912/686/983/985/951/original/7293a7e8cf057bc7.jpg","header_static":"http://localhost:3000/system/accounts/headers/111/912/686/983/985/951/original/7293a7e8cf057bc7.jpg","followers_count":0,"following_count":0,"statuses_count":12,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
|
|
headers:
|
|
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/"e8fb76fac1ce9e9d70d96597a93f94b9"
|
|
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-RateLimit-Limit:
|
|
- '300'
|
|
X-RateLimit-Remaining:
|
|
- '231'
|
|
X-RateLimit-Reset:
|
|
- '2024-02-11T12:00:00.774895Z'
|
|
X-Request-Id:
|
|
- 8158f0ca-1222-4239-bb86-ee890d6fafff
|
|
X-Runtime:
|
|
- '0.053909'
|
|
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
|
|
User-Agent:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/accounts/verify_credentials
|
|
response:
|
|
body:
|
|
string: '{"id":"111912686983985951","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
|
|
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"\u003cp\u003eI
|
|
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/111/912/686/983/985/951/original/d12b874e353776ad.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/111/912/686/983/985/951/original/d12b874e353776ad.jpg","header":"http://localhost:3000/system/accounts/headers/111/912/686/983/985/951/original/7293a7e8cf057bc7.jpg","header_static":"http://localhost:3000/system/accounts/headers/111/912/686/983/985/951/original/7293a7e8cf057bc7.jpg","followers_count":0,"following_count":0,"statuses_count":12,"last_status_at":"2024-02-11","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"I
|
|
walk funny","fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"follow_requests_count":0},"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}'
|
|
headers:
|
|
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/"5850343b9adfd9ec49918135dd99b508"
|
|
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:
|
|
- bcfc7028-08c6-429d-97d9-06abdf435f07
|
|
X-Runtime:
|
|
- '0.017773'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: account_id=111912686983985951&comment=makes+the+bad+post&status_ids%5B%5D=111912699739433170
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '92'
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
User-Agent:
|
|
- tests/v311
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/reports/
|
|
response:
|
|
body:
|
|
string: '{"id":"2","action_taken":false,"action_taken_at":null,"category":"other","comment":"makes
|
|
the bad post","forwarded":false,"created_at":"2024-02-11T11:51:18.861Z","status_ids":["111912699739433170"],"rule_ids":null,"target_account":{"id":"111912686983985951","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
|
|
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"\u003cp\u003eI
|
|
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/111/912/686/983/985/951/original/d12b874e353776ad.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/111/912/686/983/985/951/original/d12b874e353776ad.jpg","header":"http://localhost:3000/system/accounts/headers/111/912/686/983/985/951/original/7293a7e8cf057bc7.jpg","header_static":"http://localhost:3000/system/accounts/headers/111/912/686/983/985/951/original/7293a7e8cf057bc7.jpg","followers_count":0,"following_count":0,"statuses_count":12,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}}'
|
|
headers:
|
|
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/"954be922e75bdecd16b027fa857230ac"
|
|
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-RateLimit-Limit:
|
|
- '400'
|
|
X-RateLimit-Remaining:
|
|
- '400'
|
|
X-RateLimit-Reset:
|
|
- '2024-02-12T00:00:00.873787Z'
|
|
X-Request-Id:
|
|
- c906ed81-cb11-40c9-8485-af7bf1ab0395
|
|
X-Runtime:
|
|
- '0.034425'
|
|
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: DELETE
|
|
uri: http://localhost:3000/api/v1/statuses/111912699739433170
|
|
response:
|
|
body:
|
|
string: '{"id":"111912699739433170","created_at":"2024-02-11T11:51:18.740Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111912699739433170","url":"http://localhost:3000/@mastodonpy_test/111912699739433170","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
|
|
test suite","website":null},"account":{"id":"111912686983985951","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
|
|
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"\u003cp\u003eI
|
|
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/111/912/686/983/985/951/original/d12b874e353776ad.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/111/912/686/983/985/951/original/d12b874e353776ad.jpg","header":"http://localhost:3000/system/accounts/headers/111/912/686/983/985/951/original/7293a7e8cf057bc7.jpg","header_static":"http://localhost:3000/system/accounts/headers/111/912/686/983/985/951/original/7293a7e8cf057bc7.jpg","followers_count":0,"following_count":0,"statuses_count":11,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
|
|
headers:
|
|
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/"b08fd05611e8d612362babf489b77816"
|
|
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:
|
|
- 249ad3c6-6062-479e-b26c-90a031a56e4f
|
|
X-Runtime:
|
|
- '0.037693'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|