id: jira-serverinfo

info:
  name: Jira Rest API Server Information
  author: pdteam
  severity: info
  metadata:
    max-request: 1
  tags: jira,tech

http:
  - method: GET
    path:
      - "{{BaseURL}}/rest/api/latest/serverInfo"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"baseUrl"'
          - '"deploymentType"'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: json
        json:
          - ".baseUrl"
          - ".version"

# digest: 4b0a00483046022100cf18a4725cfdca01bc459389aa2433d640e15b64d6c8098ab899aff3e8801802022100b713a09b3c92e8bee4ea46ac544298b5f7769de54cb6c7af89100255ea709918:922c64590222798bb761d5b6d8e72950
