{ "protocol" : "License", "namespace" : "Switchboard", "types" : [ { "type" : "record", "name" : "License", "doc" : "The main class for this protocol", "fields" : [ { "name" : "id", "type" : "int", "doc" : "The primary key" }, { "name" : "authority_name", "type" : "string", "doc" : "name" }, { "name" : "state", "type" : "string" }, { "name" : "status", "type" : "string" }, { "name" : "license_number", "type" : "string" }, { "name" : "status_type", "type" : "string", "doc" : "License's status *" }, { "name" : "license_date", "type" : "int", "doc" : "seconds from epoch since the license was issued *" }, { "name" : "lawyer_id", "type" : "int", "doc" : "primary key of the Lawyer object for this license" }, { "name" : "last_updated", "type" : "int", "doc" : "seconds from epoch when license was last updated" } ] } ], "messages" : { "index" : { "doc" : "Look up many licenses in bulk", "request" : [ ], "response" : { "type" : "array", "items" : "License" } }, "show" : { "doc" : "Look up a single license by id", "request" : [ { "name" : "id", "type" : "int" } ], "response" : { "type" : "array", "items" : "License" } } } }