id: api-gorest

info:
  name: Gorest API Test
  author: daffainfo
  severity: info
  description: Online REST API for Testing and Prototyping
  reference:
    - https://gorest.co.in/
    - https://github.com/daffainfo/all-about-apikey/tree/main/gorest
  metadata:
    max-request: 1
  tags: token-spray,gorest

self-contained: true

http:
  - raw:
      - |
        GET https://gorest.co.in/public/v2/users HTTP/1.1
        Host: gorest.co.in
        Content-Type: application/json
        Authorization: Bearer {{token}}

        {"name":"Tenali Ramakrishna", "gender":"male", "email":"tenali.rdamakrishna@15ce.com", "status":"active"}

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 201

      - type: word
        part: body
        words:
          - '"name"'

# digest: 490a00463044022040eda067fe56f4bacd7b6a7473cca2316a8716dbfb4c203a54abcb9594345e7d022001099a015686ece5d2d4fe1c587b09407c5c453732b04bb07a4b50aae452e49f:922c64590222798bb761d5b6d8e72950
