87 líneas
12 KiB
YAML
87 líneas
12 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: [python-requests/2.18.4]
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/admin/accounts?active=True
|
|
response:
|
|
body: {string: '[{"id":"1234567890123457","username":"mastodonpy_test_2","domain":null,"created_at":"2019-06-22T23:11:52.445Z","email":"mastodonpy_test_2@localhost:3000","ip":"127.0.0.1","role":"user","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"ja","invite_request":null,"account":{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":true,"bot":false,"created_at":"2019-06-22T23:11:52.445Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test_2","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}},{"id":"1234567890123456","username":"mastodonpy_test","domain":null,"created_at":"2019-06-22T23:11:52.441Z","email":"mastodonpy_test@localhost:3000","ip":"127.0.0.1","role":"user","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"ja","invite_request":null,"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
|
|
Lennon","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003eI
|
|
walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914010","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914010","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2019-10-12T21:00:13.239Z","emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}},{"id":"13","username":"coolguy55896","domain":null,"created_at":"2019-10-11T21:48:27.648Z","email":"email@localhost55896","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"13","account":{"id":"13","username":"coolguy55896","acct":"coolguy55896","display_name":"","locked":false,"bot":false,"created_at":"2019-10-11T21:48:27.648Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy55896","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}},{"id":"12","username":"coolguy32708","domain":null,"created_at":"2019-10-11T21:44:25.026Z","email":"email@localhost32708","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"12","account":{"id":"12","username":"coolguy32708","acct":"coolguy32708","display_name":"","locked":false,"bot":false,"created_at":"2019-10-11T21:44:25.026Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy32708","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}},{"id":"11","username":"coolguy19806","domain":null,"created_at":"2019-10-11T21:05:16.572Z","email":"email@localhost19806","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"11","account":{"id":"11","username":"coolguy19806","acct":"coolguy19806","display_name":"","locked":false,"bot":false,"created_at":"2019-10-11T21:05:16.572Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy19806","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}},{"id":"10","username":"coolguy23802","domain":null,"created_at":"2019-10-11T21:03:13.216Z","email":"email@localhost23802","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"10","account":{"id":"10","username":"coolguy23802","acct":"coolguy23802","display_name":"","locked":false,"bot":false,"created_at":"2019-10-11T21:03:13.216Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy23802","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}},{"id":"1","username":"admin","domain":null,"created_at":"2019-06-22T12:42:50.096Z","email":"admin@localhost","ip":"127.0.0.1","role":"admin","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":null,"invite_request":null,"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":30,"last_status_at":"2019-10-11T21:57:00.304Z","emojis":[],"fields":[]}},{"id":"-99","username":"localhost","domain":null,"created_at":"2019-10-11T20:53:56.055Z","email":null,"ip":null,"role":null,"confirmed":null,"suspended":false,"silenced":false,"disabled":null,"approved":null,"locale":null,"invite_request":null,"account":{"id":"-99","username":"localhost","acct":"localhost","display_name":"","locked":true,"bot":true,"created_at":"2019-10-11T20:53:56.055Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/about/more?instance_actor=true","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}}]'}
|
|
headers:
|
|
Cache-Control: ['no-cache, no-store']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
Link: ['<http://localhost:3000/api/v1/admin/accounts?active=True&min_id=1234567890123457>;
|
|
rel="prev"']
|
|
Referrer-Policy: [strict-origin-when-cross-origin]
|
|
Transfer-Encoding: [chunked]
|
|
Vary: ['Accept-Encoding, Origin']
|
|
X-Content-Type-Options: [nosniff]
|
|
X-Download-Options: [noopen]
|
|
X-Frame-Options: [SAMEORIGIN]
|
|
X-Permitted-Cross-Domain-Policies: [none]
|
|
X-Request-Id: [09f16a20-4a2e-4619-a1bf-11a9c694404a]
|
|
X-Runtime: ['0.110486']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['7395']
|
|
status: {code: 200, message: OK}
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept: ['*/*']
|
|
Accept-Encoding: ['gzip, deflate']
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
|
|
Connection: [keep-alive]
|
|
User-Agent: [python-requests/2.18.4]
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/accounts/verify_credentials
|
|
response:
|
|
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":30,"last_status_at":"2019-10-11T21:57:00.304Z","source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'}
|
|
headers:
|
|
Cache-Control: ['no-cache, no-store']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
Referrer-Policy: [strict-origin-when-cross-origin]
|
|
Transfer-Encoding: [chunked]
|
|
Vary: ['Accept-Encoding, Origin']
|
|
X-Content-Type-Options: [nosniff]
|
|
X-Download-Options: [noopen]
|
|
X-Frame-Options: [SAMEORIGIN]
|
|
X-Permitted-Cross-Domain-Policies: [none]
|
|
X-Request-Id: [51f59c44-c574-46e8-a380-d072274b8bc5]
|
|
X-Runtime: ['0.032819']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['680']
|
|
status: {code: 200, message: OK}
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept: ['*/*']
|
|
Accept-Encoding: ['gzip, deflate']
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
|
|
Connection: [keep-alive]
|
|
User-Agent: [python-requests/2.18.4]
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/admin/accounts/1
|
|
response:
|
|
body: {string: '{"id":"1","username":"admin","domain":null,"created_at":"2019-06-22T12:42:50.096Z","email":"admin@localhost","ip":"127.0.0.1","role":"admin","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":null,"invite_request":null,"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":30,"last_status_at":"2019-10-11T21:57:00.304Z","emojis":[],"fields":[]}}'}
|
|
headers:
|
|
Cache-Control: ['no-cache, no-store']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
Referrer-Policy: [strict-origin-when-cross-origin]
|
|
Transfer-Encoding: [chunked]
|
|
Vary: ['Accept-Encoding, Origin']
|
|
X-Content-Type-Options: [nosniff]
|
|
X-Download-Options: [noopen]
|
|
X-Frame-Options: [SAMEORIGIN]
|
|
X-Permitted-Cross-Domain-Policies: [none]
|
|
X-Request-Id: [26a917c0-be37-41be-9a57-512d517da6d9]
|
|
X-Runtime: ['0.025383']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['841']
|
|
status: {code: 200, message: OK}
|
|
version: 1
|