{ "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" } } } }