id: api-smartsheet

info:
  name: Smartsheet API Test
  author: daffainfo
  severity: info
  description: Allows you to programmatically access and Smartsheet data and account information
  reference:
    - https://smartsheet.redoc.ly/
    - https://github.com/daffainfo/all-about-apikey/tree/main/smartsheet
  metadata:
    max-request: 1
  tags: token-spray,smartsheet

self-contained: true

http:
  - method: GET
    path:
      - "https://api.smartsheet.com/2.0/home?include=source"

    headers:
      Authorization: Bearer {{token}}

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - '"sheets":'
          - '"folders":'
        condition: and
# digest: 490a0046304402200390d7e72063de3d846770d5ef0e68668832a136dedb961c7cacf952923b753a02206fd9b8464103b7b51bc6b5f2f0a7ee6f6e07651649583d14c1d4a8f32b04b1ef:922c64590222798bb761d5b6d8e72950