{ "protocol" : "PackageSlug", "namespace" : "Switchboard", "types" : [ { "type" : "record", "name" : "PackageSlug", "doc" : "The main class for this protocol", "fields" : [ { "name" : "id", "type" : "int", "doc" : "The primary key" }, { "name" : "specialty_id", "type" : "int" }, { "name" : "name", "type" : "string" }, { "name" : "slug", "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" }, { "name" : "advisor", "type" : "boolean" } ] } ], "messages" : { "index" : { "doc" : "Returns a list of PackageSlugs", "request" : [ { "name" : "options", "type" : "PackageFetchOption" } ], "response" : { "type" : "array", "items" : "PackageSlug" } }, "show" : { "doc" : "Return a single PackageSlug", "request" : [ { "name" : "id", "type" : "int" } ], "response" : { "type" : "array", "items" : "PackageSlug" } } } }