{
  "lexicon": 1,
  "id": "com.fujocoded.guestbook.getGuestbook",
  "defs": {
    "main": {
      "type": "query",
      "description": "Get a list of the entries in a guestbook",
      "parameters": {
        "type": "params",
        "required": ["guestbookAtUri"],
        "properties": {
          "guestbookAtUri": {
            "type": "string",
            "format": "at-uri"
          },
          "showHidden": {
            "type": "boolean",
            "default": false,
            "description": "If the user is the owner of the guestbook, ask to also return hidden submissions."
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "ref",
          "ref": "com.fujocoded.guestbook.defs#guestbookView"
        }
      }
    }
  }
}

