~ knotless Search/
↑↓ move↵ open⇧↵ all results

grain.social/grain

photography-focused photo sharing platform

grain.social
1 collaborator
0
2
31 lines · 849 B Raw History
{
  "lexicon": 1,
  "id": "dev.hatk.getRecords",
  "defs": {
    "main": {
      "type": "query",
      "description": "List records from a collection with optional filters.",
      "parameters": {
        "type": "params",
        "required": ["collection"],
        "properties": {
          "collection": { "type": "string" },
          "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 },
          "cursor": { "type": "string" },
          "sort": { "type": "string" },
          "order": { "type": "string" }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "properties": {
            "items": { "type": "array", "items": { "type": "unknown" } },
            "cursor": { "type": "string" }
          }
        }
      }
    }
  }
}