Sha256: 163b73ab5fc470b6e06cfbea1f3fedbb700d44032f19945fb58b22dec461cda6

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

{
  "protocol" : "Advisor",
  "namespace" : "Switchboard",
  "types" : [ {
    "type" : "record",
    "name" : "Advisor",
    "doc" : "The main class for this protocol",
    "fields" : [ {
      "name" : "id",
      "type" : "int",
      "doc" : "The primary key"
    }, {
      "name" : "lawyer_id",
      "type" : "int"
    }, {
      "name" : "specialty_ids",
      "type" : {
        "type" : "array",
        "items" : "int"
      }
    }, {
      "name" : "states",
      "type" : {
        "type" : "array",
        "items" : "string"
      }
    }, {
      "name" : "available",
      "type" : "boolean"
    }, {
      "name" : "offer_ids",
      "type" : {
        "type" : "array",
        "items" : "int"
      }
    } ]
  }, {
    "type" : "record",
    "name" : "AdvisorFetchOption",
    "doc" : "Options you can send for limiting Advisor results",
    "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" : 30
    } ]
  } ],
  "messages" : {
    "index" : {
      "doc" : "Returns a list of Advisor",
      "request" : [ {
        "name" : "options",
        "type" : "AdvisorFetchOption"
      } ],
      "response" : {
        "type" : "array",
        "items" : "Advisor"
      }
    },
    "show" : {
      "doc" : "Return a single Advisor",
      "request" : [ {
        "name" : "id",
        "type" : "int"
      } ],
      "response" : {
        "type" : "array",
        "items" : "Advisor"
      }
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

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