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"],
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 "lastCommit": {
46 "type": "ref",
47 "ref": "sh.tangled.git.temp.defs#commit"
48 },
49 "submodule": {
50 "type": "ref",
51 "ref": "sh.tangled.git.temp.defs#submodule",
52 "description": "Submodule information if path is a submodule"
53 }
54 }
55 }
56 },
57 "errors": [
58 {
59 "name": "RepoNotFound",
60 "description": "Repository not found or access denied"
61 },
62 {
63 "name": "RefNotFound",
64 "description": "Git reference not found"
65 },
66 {
67 "name": "EntryNotFound",
68 "description": "Entry not found"
69 },
70 {
71 "name": "InvalidRequest",
72 "description": "Invalid request parameters"
73 }
74 ]
75 }
76 }
77}