{ "protocol" : "User", "namespace" : "Switchboard", "types" : [ { "type" : "record", "name" : "User", "doc" : "The main User class", "fields" : [ { "name" : "id", "type" : "int", "doc" : "The primary key" }, { "name" : "name", "type" : "string", "doc" : "Their name" }, { "name" : "email_address", "type" : "string", "doc" : "The email address of the user" }, { "name" : "permissions", "type" : { "type" : "array", "items" : "string" }, "doc" : "An array of the names of all permissions the user has" } ] } ], "messages" : { "index" : { "doc" : "Look up many Users in bulk", "request" : [ ], "response" : { "type" : "array", "items" : "User" } }, "show" : { "doc" : "Look up a single User by id", "request" : [ { "name" : "id", "type" : "int" } ], "response" : { "type" : "array", "items" : "User" } } } }