# fyi.opensocial.listTemplateLikes

> Who likes a template shared with everyone, newest first, each about a version of it and with their line about it: as this host has seen them, leaving out any labelled hidden. For anyone.

- Kind: query
- Authority: opensocial.fyi
- Lexicon: 1
- Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.listTemplateLikes)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.listTemplateLikes/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.listTemplateLikes/analytics)

## Query (`fyi.opensocial.listTemplateLikes`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `uri` (string · at-uri, required): The template, its fyi.opensocial.template.

### Output (application/json)

- `cursor` (string)
- `likes` (array, required)
  - `items` (ref)
    - Reference: `#likeView`

### Errors

- `NotFound`: No description in schema.

## #likeView (`fyi.opensocial.listTemplateLikes#likeView`)

Type: object

### Properties

- `author` (ref, required)
  - Reference: `fyi.opensocial.getTemplateListing#makerView`
- `createdAt` (string · datetime, required)
- `number` (integer): Which version that is.
  - Constraints: minimum: 1
- `text` (string)
- `uri` (string · at-uri, required)
- `version` (ref, required): The version it's about.
  - Reference: `com.atproto.repo.strongRef`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "likeView": {
      "properties": {
        "author": {
          "ref": "fyi.opensocial.getTemplateListing#makerView",
          "type": "ref"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "number": {
          "description": "Which version that is.",
          "minimum": 1,
          "type": "integer"
        },
        "text": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "version": {
          "description": "The version it's about.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "uri",
        "author",
        "version",
        "createdAt"
      ],
      "type": "object"
    },
    "main": {
      "description": "Who likes a template shared with everyone, newest first, each about a version of it and with their line about it: as this host has seen them, leaving out any labelled hidden. For anyone.",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "likes": {
              "items": {
                "ref": "#likeView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "likes"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "uri": {
            "description": "The template, its fyi.opensocial.template.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.listTemplateLikes",
  "lexicon": 1
}
```
