{ "protocol" : "Package", "namespace" : "Switchboard", "types" : [ { "type" : "record", "name" : "Package", "doc" : "The main class for this protocol", "fields" : [ { "name" : "id", "type" : "int", "doc" : "The primary key" }, { "name" : "name", "type" : "string" }, { "name" : "short_description", "type" : "string" }, { "name" : "call", "type" : "boolean" }, { "name" : "call_duration_in_minutes", "type" : "int" }, { "name" : "document", "type" : "boolean" }, { "name" : "max_document_length_in_pages", "type" : "int" }, { "name" : "claim_game", "type" : "boolean" }, { "name" : "offline", "type" : "boolean" }, { "name" : "specialty_id", "type" : "int" }, { "name" : "micro_description", "type" : "string" } ] }, { "type" : "record", "name" : "PackageFetchOption", "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" : 10 }, { "name" : "specialty_id", "type" : "int" } ] } ], "messages" : { "index" : { "doc" : "Returns a list of Packages", "request" : [ { "name" : "options", "type" : "PackageFetchOption" } ], "response" : { "type" : "array", "items" : "Package" } }, "show" : { "doc" : "Return a single Package", "request" : [ { "name" : "id", "type" : "int" } ], "response" : { "type" : "array", "items" : "Package" } } } }