Sha256: 3212c837f2d3a880fc70209a9a3a6c9a5f9cac126d50f32b1b1f97c008fb13bd

Contents?: true

Size: 603 Bytes

Versions: 3

Compression:

Stored size: 603 Bytes

Contents

{
  "request": {
    "http_method": "GET",
    "path": "/echo",
    "headers": {
      "Accept": "application/json",
      "Custom-Auth-Token": "<%= auth_token %>",
      "X-Message": "<%= key %>"
    },
    "params": {
    }
  },

  "response": {
    "status": 200,
    "headers": { "Content-Type": "application/json" },
    "schema": {
      "$schema": "http://json-schema.org/draft-03/schema#",
      "type": "object",
      "required": true,
      "properties": {
        "message": { "type": "string", "default": "<%= req['HEADERS']['X-Message'].reverse %>", "required": true }
      }
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pacto-0.4.0.rc3 spec/fixtures/contracts/legacy/templating_contract.json
pacto-0.4.0.rc2 spec/fixtures/contracts/legacy/templating_contract.json
pacto-0.4.0.rc1 spec/fixtures/contracts/templating_contract.json