88 líneas
3,4 KiB
YAML
88 líneas
3,4 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":"60","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
|
|
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: [855e6d63-e244-4b89-9193-5568a98db496]
|
|
X-Runtime: ['0.028946']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['113']
|
|
status: {code: 200, message: OK}
|
|
- request:
|
|
body: phrase=japanimation
|
|
headers:
|
|
Accept: ['*/*']
|
|
Accept-Encoding: ['gzip, deflate']
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
|
|
Connection: [keep-alive]
|
|
Content-Length: ['19']
|
|
Content-Type: [application/x-www-form-urlencoded]
|
|
User-Agent: [python-requests/2.18.4]
|
|
method: PUT
|
|
uri: http://localhost:3000/api/v1/filters/60
|
|
response:
|
|
body: {string: '{"id":"60","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
|
|
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: [b439f18f-8c5d-44e2-afc6-432d3a19e5f9]
|
|
X-Runtime: ['0.023707']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['120']
|
|
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/60
|
|
response:
|
|
body: {string: '{"id":"60","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
|
|
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: [0ee71619-eb0a-4a84-a947-464b3a0f157a]
|
|
X-Runtime: ['0.023123']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['120']
|
|
status: {code: 200, message: OK}
|
|
version: 1
|