Sha256: 86c7a8627bd8db3553c1c7dcbec28a3e36cea3e5baf266ed71ee4b8aa7e33423

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
switchboard-contract-1.9.5 contracts/3/compiled/user.avpr