id: api-todoist

info:
  name: Todoist API Test
  author: daffainfo
  severity: info
  description: Todo Lists
  reference:
    - https://developer.todoist.com/rest/v1/#overview
    - https://github.com/daffainfo/all-about-apikey/tree/main/todoist
  metadata:
    max-request: 1
  tags: token-spray,todoist

self-contained: true

http:
  - raw:
      - |
        GET https://api.todoist.com/rest/v1/projects HTTP/1.1
        Host: api.todoist.com
        Authorization: Bearer {{token}}

    matchers:
      - type: word
        part: body
        words:
          - "id"
          - "color"
          - "name"
        condition: and
# digest: 4b0a00483046022100892ce5633119240ee2de2a834f4710e866f144608d3f943a314337d8dc06749c022100e1bb0f2408c1966331c0c43a4c1fd257af9347b52462c772afb51bce93c0d6ba:922c64590222798bb761d5b6d8e72950