Sha256: 4eced10ac5ada662838804d9b9d39be5fd8be42390ec8edc899f90e3f308ff8e

Contents?: true

Size: 1.75 KB

Versions: 1

Compression:

Stored size: 1.75 KB

Contents

{
  "protocol" : "Lawyer",
  "namespace" : "Switchboard",
  "types" : [ {
    "type" : "record",
    "name" : "Lawyer",
    "doc" : "The main class for this protocol",
    "fields" : [ {
      "name" : "id",
      "type" : "int",
      "doc" : "The primary key"
    }, {
      "name" : "firstname",
      "type" : "string",
      "doc" : "name"
    }, {
      "name" : "middlename",
      "type" : "string"
    }, {
      "name" : "lastname",
      "type" : "string"
    }, {
      "name" : "suffix",
      "type" : "string"
    }, {
      "name" : "avvo_rating",
      "type" : "float",
      "doc" : "Avvo Rating (Scale of 1-10)"
    }, {
      "name" : "client_review_count",
      "type" : "int",
      "doc" : "Number of reviews the average is based upon"
    }, {
      "name" : "aggregate_client_review_score",
      "type" : "float",
      "doc" : "Average client review score (Scale of 1-5)"
    }, {
      "name" : "licensed_since",
      "type" : "string",
      "doc" : "year licensed since *"
    }, {
      "name" : "specialties",
      "type" : {
        "type" : "array",
        "items" : "string"
      },
      "doc" : "List of specialties this lawyer practices"
    } ]
  } ],
  "messages" : {
    "index" : {
      "doc" : "Look up many lawyers in bulk",
      "request" : [ ],
      "response" : {
        "type" : "array",
        "items" : "Lawyer"
      }
    },
    "show" : {
      "doc" : "Look up a single lawyer by id",
      "request" : [ {
        "name" : "id",
        "type" : "int"
      } ],
      "response" : {
        "type" : "array",
        "items" : "Lawyer"
      }
    },
    "search" : {
      "doc" : "Look up many lawyers in bulk",
      "request" : [ ],
      "response" : {
        "type" : "array",
        "items" : "Lawyer"
      }
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
switchboard-contract-1.9.5 contracts/verify/compiled/lawyer.avpr