233 líneas
10 KiB
YAML
233 líneas
10 KiB
YAML
interactions:
|
|
- request:
|
|
body: whole_word=1&irreversible=0&phrase=anime&context%5B%5D=notifications
|
|
headers:
|
|
Accept: ['*/*']
|
|
Accept-Encoding: ['gzip, deflate']
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
|
|
Connection: [keep-alive]
|
|
Content-Length: ['68']
|
|
Content-Type: [application/x-www-form-urlencoded]
|
|
User-Agent: [python-requests/2.18.4]
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/filters
|
|
response:
|
|
body: {string: '{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"3d6994baffdea8caa5d91fc5d2a1efc0"]
|
|
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: [b27015d9-55e5-4f2a-9231-8db9702a73ce]
|
|
X-Runtime: ['0.034108']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['111']
|
|
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: [python-requests/2.18.4]
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/filters
|
|
response:
|
|
body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":27,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":30,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":34,"phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":false},{"id":35,"phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":36,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"edbbd56d6a098ed450465fe480624fab"]
|
|
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: [4bbd6c23-662c-41bb-8192-76fd47356fab]
|
|
X-Runtime: ['0.020769']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['792']
|
|
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: [python-requests/2.18.4]
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/filters/37
|
|
response:
|
|
body: {string: '{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"3d6994baffdea8caa5d91fc5d2a1efc0"]
|
|
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: [b3d107a7-cb56-40a1-9bd9-0e79ee16f832]
|
|
X-Runtime: ['0.023702']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['111']
|
|
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: [python-requests/2.18.4]
|
|
method: DELETE
|
|
uri: http://localhost:3000/api/v1/filters/37
|
|
response:
|
|
body: {string: '{}'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"e4127e970a50339ddd95e5e919b70642"]
|
|
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: [efb38983-7b67-4bb1-8a53-bd2a2b8596b7]
|
|
X-Runtime: ['0.033148']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['2']
|
|
status: {code: 200, message: OK}
|
|
- request:
|
|
body: whole_word=0&irreversible=0&phrase=anime&context%5B%5D=notifications
|
|
headers:
|
|
Accept: ['*/*']
|
|
Accept-Encoding: ['gzip, deflate']
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
|
|
Connection: [keep-alive]
|
|
Content-Length: ['68']
|
|
Content-Type: [application/x-www-form-urlencoded]
|
|
User-Agent: [python-requests/2.18.4]
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/filters
|
|
response:
|
|
body: {string: '{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"cae02e13e377c3adb0b76489a56fadb8"]
|
|
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: [b239ccd2-eead-4876-b62c-4d0a174971e5]
|
|
X-Runtime: ['0.033069']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['112']
|
|
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: [python-requests/2.18.4]
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/filters
|
|
response:
|
|
body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":27,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":30,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":34,"phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":false},{"id":35,"phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":36,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}]'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"3869f2ed416e1a8c2a0374d33e45625e"]
|
|
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: [be361b44-e614-475a-b64a-d09c3ae36330]
|
|
X-Runtime: ['0.020416']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['793']
|
|
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: [python-requests/2.18.4]
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/filters/38
|
|
response:
|
|
body: {string: '{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"cae02e13e377c3adb0b76489a56fadb8"]
|
|
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: [e26dcff6-7e5c-43f3-ba4a-7c4a036ea445]
|
|
X-Runtime: ['0.025813']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['112']
|
|
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: [python-requests/2.18.4]
|
|
method: DELETE
|
|
uri: http://localhost:3000/api/v1/filters/38
|
|
response:
|
|
body: {string: '{}'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"e4127e970a50339ddd95e5e919b70642"]
|
|
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: [28e0d549-bd9f-498e-b3a5-c0950d2eb9a8]
|
|
X-Runtime: ['0.033591']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['2']
|
|
status: {code: 200, message: OK}
|
|
version: 1
|