Sha256: 5a782fdf60ea7f1d74030f3ef23517af9d9e28ee3bc111a625caef06f371dc1b

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

{
  "request": {
    "headers": {
    },
    "http_method": "get",
    "path": "/api/album/{id}/cover"
  },
  "response": {
    "headers": {
      "Content-Type": "application/json"
    },
    "status": 200,
    "schema": {
      "$schema": "http://json-schema.org/draft-03/schema#",
      "description": "Generated from http://localhost:5000/api/album/1/cover with shasum db640385d2b346db760dbfd78058101663197bcf",
      "type": "object",
      "required": true,
      "properties": {
        "cover": {
          "type": "string",
          "required": true
        }
      }
    }
  },
  "examples": {
    "default": {
      "request": {
        "method": "get",
        "uri": "http://localhost:5000/api/album/1/cover",
        "headers": {
          "User-Agent": "Faraday v0.9.0",
          "Accept-Encoding": "gzip;q=1.0,deflate;q=0.6,identity;q=0.3",
          "Accept": "*/*"
        }
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json",
          "Content-Length": "17"
        },
        "body": "{\"cover\":\"image\"}"
      }
    }
  },
  "name": "Get Album Cover"
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pacto-0.4.0.rc3 samples/contracts/get_album_cover.json
pacto-0.4.0.rc2 samples/contracts/get_album_cover.json
pacto-0.4.0.rc1 samples/contracts/get_album_cover.json