Sha256: 089440f5ea28dd5e9707e239658f2ae8db6286c3b6f9d56f92367fb0e483ae38

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

{
  "protocol" : "Specialty",
  "namespace" : "Switchboard",
  "types" : [ {
    "type" : "record",
    "name" : "SpecialtyCompact",
    "fields" : [ {
      "name" : "id",
      "type" : "int",
      "doc" : "The primary key"
    }, {
      "name" : "name",
      "type" : "string",
      "doc" : "Name of the specialty"
    } ]
  }, {
    "type" : "record",
    "name" : "Specialty",
    "doc" : "The main class for this protocol",
    "fields" : [ {
      "name" : "id",
      "type" : "int",
      "doc" : "The primary key"
    }, {
      "name" : "name",
      "type" : "string",
      "doc" : "Name of the specialty"
    }, {
      "name" : "image_url",
      "type" : "string",
      "doc" : "Url to the icon representing this specialty"
    }, {
      "name" : "ancestors",
      "type" : {
        "type" : "array",
        "items" : "SpecialtyCompact"
      }
    } ]
  } ],
  "messages" : {
    "index" : {
      "doc" : "Look up many specialties in bulk",
      "request" : [ ],
      "response" : {
        "type" : "array",
        "items" : "Specialty"
      }
    },
    "show" : {
      "doc" : "Look up a specialty by id",
      "request" : [ {
        "name" : "id",
        "type" : "int"
      } ],
      "response" : {
        "type" : "array",
        "items" : "Specialty"
      }
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

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