id: api-myanimelist

info:
  name: MyAnimeList API Test
  author: daffainfo
  severity: info
  description: Anime and Manga Database and Community
  reference:
    - https://myanimelist.net/apiconfig/references/api/v2
    - https://github.com/daffainfo/all-about-apikey/tree/main/myanimelist
  metadata:
    max-request: 1
  tags: token-spray,myanimelist

self-contained: true

http:
  - method: GET
    path:
      - "https://api.myanimelist.net/v2/anime?q=one&limit=4"

    headers:
      Authorization: Bearer {{token}}
    matchers:
      - type: word
        part: body
        words:
          - '"data":'
          - '"paging":'
          - '"next":'
        condition: and
# digest: 4a0a004730450221009deee78ec70a23b467e0bd4ff6081ff26c6da1b45e26ad53023a8647c4c3c2fa02205445c57e11ae7aa8e049f7a230919df9a178f4aa7338366032c9a5d71065426b:922c64590222798bb761d5b6d8e72950