id: api-taiga

info:
  name: Taiga API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://docs.taiga.io/api.html
  metadata:
    max-request: 1
  tags: token-spray,taiga

self-contained: true

http:
  - method: GET
    path:
      - "https://api.taiga.io/api/v1/application-tokens"

    headers:
      Authorization: Bearer {{token}}
    matchers:
      - type: word
        part: body
        words:
          - '"auth_code":'
          - '"state":'
        condition: and
# digest: 4a0a00473045022001ec5a52cedffe6cf321f3baf37383c42e79f69970f5175e9786ae9218728fac022100ec157ee62960f63385e8c5265b99edf0690bc754d6a006e3ab34529834450cb2:922c64590222798bb761d5b6d8e72950