Sha256: b6ea63d3baaaa158ba1f5a975cf1d5da8757d459f09daa99e03b5f4de6624e71

Contents?: true

Size: 1.39 KB

Versions: 1

Compression:

Stored size: 1.39 KB

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
switchboard-contract-1.9.5 contracts/mobile/compiled/package_slug.avpr