at.protocube.getWalkthroughLikes

Count at.protocube.like records for one walkthrough and report whether the viewer liked it. An unknown walkthrough is a zero count, not an error.

Repository @protocube.at did:plc:it2qbdcai2lchnnnt3caynqx namespace authority
Details · query
Kindquery
Authorityprotocube.at
Commit rev3mzxpo5iqs62v
Indexed
cid bafyreif5mtutn5orpjvbdmyaojvkjotnhs4uvx5mp56xcovjovrwbaoa6e

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Count at.protocube.like records for one walkthrough and report whether the viewer liked it. An unknown walkthrough is a zero count, not an error.",
      "errors": [
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "minimum": 0,
              "type": "integer"
            },
            "viewerLiked": {
              "type": "boolean"
            }
          },
          "required": [
            "count",
            "viewerLiked"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "subject": {
            "format": "at-uri",
            "type": "string"
          },
          "viewer": {
            "description": "Optional viewer DID; omitted means viewerLiked is false.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "subject"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "at.protocube.getWalkthroughLikes",
  "lexicon": 1
}