Monorepo for Tangled
tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.git.temp.getEntry",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "get metadata of blob by ref and path",
8 "parameters": {
9 "type": "params",
10 "required": ["repo", "path"],
11 "properties": {
12 "repo": {
13 "type": "string",
14 "format": "did",
15 "description": "DID of the repository"
16 },
17 "ref": {
18 "type": "string",
19 "description": "Git revision (branch, tag, or commit id)",
20 "default": "HEAD"
21 },
22 "path": {
23 "type": "string",
24 "description": "path of the entity"
25 }
26 }
27 },
28 "output": {
29 "encoding": "application/json",
30 "schema": {
31 "type": "object",
32 "required": ["name", "mode", "oid", "size"],
33 "properties": {
34 "name": {
35 "type": "string",
36 "description": "The file name"
37 },
38 "mode": {
39 "type": "string",
40 "enum": ["0040000", "0100644", "0100664", "0100755", "0120000", "0160000"]
41 },
42 "oid": {
43 "type": "string"
44 },
45 "size": {
46 "type": "integer",
47 "description": "Blob size"
48 },
49 "lastCommit": {
50 "type": "ref",
51 "ref": "sh.tangled.git.temp.defs#commit"
52 },
53 "submodule": {
54 "type": "ref",
55 "ref": "sh.tangled.git.temp.defs#submodule",
56 "description": "Submodule information if path is a submodule"
57 }
58 }
59 }
60 },
61 "errors": [
62 {
63 "name": "RepoNotFound",
64 "description": "Repository not found or access denied"
65 },
66 {
67 "name": "RefNotFound",
68 "description": "Git reference not found"
69 },
70 {
71 "name": "EntryNotFound",
72 "description": "Entry not found"
73 },
74 {
75 "name": "InvalidRequest",
76 "description": "Invalid request parameters"
77 }
78 ]
79 }
80 }
81}