-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactions.yaml
82 lines (82 loc) · 2.18 KB
/
actions.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
openapi: 3.1.0
info:
title: File Serving API
description: API to serve files as text from a specified directory.
version: 1.0.0
servers:
- url: https://learning-beagle-saving.ngrok-free.app
description: Local server hosting the file serving API
paths:
/{filepath}:
get:
operationId: getFileAsText
summary: Retrieves a file as plain text.
parameters:
- in: path
name: filepath
required: true
description: Path to the file to be served.
schema:
type: string
responses:
"200":
description: File content served as plain text.
content:
text/plain:
schema:
type: string
"404":
description: File not found.
/gitGrep:
get:
operationId: gitGrep
summary: Search using git grep -i 'search'
parameters:
- in: query
name: search
required: true
description: Query string for searching file contents.
schema:
type: string
responses:
"200":
description: Files matching the search query.
content:
text/plain:
schema:
type: string
"404":
description: No files found matching the search query.
/gitDiff:
get:
operationId: gitDiff
summary: Show results of git diff
responses:
"200":
description: Output of the command
content:
text/plain:
schema:
type: string
"404":
description: Something went wrong
/gitLsFiles:
get:
operationId: gitLsFiles
summary: Show results of git ls-files '*search*' (to search for files by name or directory)
parameters:
- in: query
name: search
required: true
description: Query string for searching file names.
schema:
type: string
responses:
"200":
description: Output of the command
content:
text/plain:
schema:
type: string
"404":
description: Something went wrong