Sha256: e23ffa9f2cf639054cc5a6735d46817a7dde512dc970850b0c31a5115e0c532f

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 KB

Contents

{
  "protocol" : "Package",
  "namespace" : "Switchboard",
  "types" : [ {
    "type" : "record",
    "name" : "Package",
    "doc" : "The main class for this protocol",
    "fields" : [ {
      "name" : "id",
      "type" : "int",
      "doc" : "The primary key"
    }, {
      "name" : "name",
      "type" : "string"
    }, {
      "name" : "short_description",
      "type" : "string"
    }, {
      "name" : "call",
      "type" : "boolean"
    }, {
      "name" : "call_duration_in_minutes",
      "type" : "int"
    }, {
      "name" : "document",
      "type" : "boolean"
    }, {
      "name" : "max_document_length_in_pages",
      "type" : "int"
    }, {
      "name" : "claim_game",
      "type" : "boolean"
    }, {
      "name" : "offline",
      "type" : "boolean"
    }, {
      "name" : "specialty_id",
      "type" : "int"
    }, {
      "name" : "micro_description",
      "type" : "string"
    } ]
  }, {
    "type" : "record",
    "name" : "PackageFetchOption",
    "fields" : [ {
      "name" : "page",
      "type" : "int",
      "doc" : "Which page of records to fetch",
      "default" : 1
    }, {
      "name" : "per_page",
      "type" : "int",
      "doc" : "How many records per page",
      "default" : 10
    }, {
      "name" : "specialty_id",
      "type" : "int"
    } ]
  } ],
  "messages" : {
    "index" : {
      "doc" : "Returns a list of Packages",
      "request" : [ {
        "name" : "options",
        "type" : "PackageFetchOption"
      } ],
      "response" : {
        "type" : "array",
        "items" : "Package"
      }
    },
    "show" : {
      "doc" : "Return a single Package",
      "request" : [ {
        "name" : "id",
        "type" : "int"
      } ],
      "response" : {
        "type" : "array",
        "items" : "Package"
      }
    }
  }
}

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
switchboard-contract-1.9.5 contracts/3/compiled/package.avpr
switchboard-contract-1.9.5 contracts/mobile/compiled/package.avpr