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