Repository navigation
Expand file tree
/
Copy pathmanager.yaml
More file actions
462 lines (462 loc) · 12.3 KB
/
Copy pathmanager.yaml
File metadata and controls
462 lines (462 loc) · 12.3 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
openapi: 3.0.0
info:
title: LSIF Bundle Manager
description: An internal Sourcegraph microservice that serves LSIF-powered code intelligence for a single processed dump.
version: 1.0.0
contact:
name: Eric Fritz
email: eric@sourcegraph.com
url: https://sourcegraph.com
servers:
- url: http://localhost:3187
tags:
- name: Uploads
description: Upload operations
- name: Query
description: Query operations
paths:
/uploads/{id}:
get:
description: Retrieve raw LSIF content.
tags:
- Uploads
parameters:
- name: id
in: query
description: The upload identifier.
required: true
schema:
type: number
responses:
'200':
description: OK
content:
application/octet-stream:
schema:
type: string
format: binary
post:
description: Upload raw LSIF content.
tags:
- Uploads
parameters:
- name: id
in: query
description: The upload identifier.
required: true
schema:
type: number
requestBody:
content:
application/octet-stream:
schema:
type: string
format: binary
responses:
'200':
description: OK
/dbs/{id}:
post:
description: Upload a processed LSIF database.
tags:
- Uploads
parameters:
- name: id
in: query
description: The database identifier.
required: true
schema:
type: number
requestBody:
content:
application/octet-stream:
schema:
type: string
format: binary
responses:
'200':
description: OK
/dbs/{id}/exists:
get:
description: Determine if a file path exists in the given database.
tags:
- Query
parameters:
- name: id
in: query
description: The database identifier.
required: true
schema:
type: number
- name: path
in: query
description: The file path within the repository (relative to the repository root).
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ExistsResponse'
/dbs/{id}/definitions:
get:
description: Retrieve a list of definition locations for a position in the given database.
tags:
- Query
parameters:
- name: id
in: query
description: The database identifier.
required: true
schema:
type: number
- name: path
in: query
description: The file path within the repository (relative to the repository root).
required: true
schema:
type: string
- name: line
in: query
description: The line index (zero-indexed).
required: true
schema:
type: number
- name: character
in: query
description: The character index (zero-indexed).
required: true
schema:
type: number
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/DefinitionsResponse'
/dbs/{id}/references:
get:
description: Retrieve a list of reference locations for a position in the given database.
tags:
- Query
parameters:
- name: id
in: query
description: The database identifier.
required: true
schema:
type: number
- name: path
in: query
description: The file path within the repository (relative to the repository root).
required: true
schema:
type: string
- name: line
in: query
description: The line index (zero-indexed).
required: true
schema:
type: number
- name: character
in: query
description: The character index (zero-indexed).
required: true
schema:
type: number
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ReferencesResponse'
/dbs/{id}/hover:
get:
description: Retrieve hover data for a position in the given database.
tags:
- Query
parameters:
- name: id
in: query
description: The database identifier.
required: true
schema:
type: number
- name: path
in: query
description: The file path within the repository (relative to the repository root).
required: true
schema:
type: string
- name: line
in: query
description: The line index (zero-indexed).
required: true
schema:
type: number
- name: character
in: query
description: The character index (zero-indexed).
required: true
schema:
type: number
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/HoverResponse'
/dbs/{id}/monikersByPosition:
get:
description: Retrieve a list of monikers for a position in the given database.
tags:
- Query
parameters:
- name: id
in: query
description: The database identifier.
required: true
schema:
type: number
- name: path
in: query
description: The file path within the repository (relative to the repository root).
required: true
schema:
type: string
- name: line
in: query
description: The line index (zero-indexed).
required: true
schema:
type: number
- name: character
in: query
description: The character index (zero-indexed).
required: true
schema:
type: number
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MonikersByPositionResponse'
/dbs/{id}/monikerResults:
get:
description: Retrieve a list of locations associated with the given moniker in the given database.
tags:
- Query
parameters:
- name: id
in: query
description: The database identifier.
required: true
schema:
type: number
- name: modelType
in: query
description: The type of query.
required: true
schema:
type: string
enum:
- definition
- reference
- name: scheme
in: query
description: The moniker scheme.
required: true
schema:
type: string
- name: identifier
in: query
description: The moniker identifier.
required: true
schema:
type: string
- name: skip
in: query
description: The number of results to skip.
required: false
schema:
type: number
- name: take
in: query
description: The maximum number of results to return.
required: false
schema:
type: number
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MonikerResultsResponse'
/dbs/{id}/packageInformation:
get:
description: Retrieve package information data by identifier.
tags:
- Query
parameters:
- name: id
in: query
description: The database identifier.
required: true
schema:
type: number
- name: path
in: query
description: The file path within the repository (relative to the repository root).
required: true
schema:
type: string
- name: packageInformationId
in: query
description: The identifier of the target package information data.
required: true
schema:
oneOf:
- type: number
- type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PackageInformationResponse'
components:
schemas:
Position:
type: object
description: A cursor position in a source file.
properties:
line:
type: number
description: The (zero-index) line index.
character:
type: number
description: The (zero-index) character index.
required:
- line
- character
additionalProperties: false
Range:
type: object
description: A half-open range of positions in a source file.
properties:
start:
$ref: '#/components/schemas/Position'
end:
$ref: '#/components/schemas/Position'
required:
- start
- end
additionalProperties: false
Location:
type: object
description: A position in a file of a code base.
properties:
path:
type: string
description: The root-relative path to the file.
range:
$ref: '#/components/schemas/Range'
required:
- path
- range
additionalProperties: false
ExistsResponse:
type: boolean
DefinitionsResponse:
type: array
items:
$ref: '#/components/schemas/Location'
ReferencesResponse:
type: array
items:
$ref: '#/components/schemas/Location'
HoverResponse:
type: object
properties:
text:
type: string
description: The hover text.
range:
$ref: '#/components/schemas/Range'
description: The range that the hover text describes.
additionalProperties: false
required:
- text
- range
nullable: true
MonikersByPositionResponse:
type: array
description: A list of monikers grouped by matching ranges.
items:
type: array
description: A list of monikers for a single range.
items:
type: object
properties:
kind:
type: string
description: The kind of moniker.
enum:
- import
- export
- local
scheme:
type: string
description: The moniker scheme.
identifier:
type: string
description: The moniker identifier.
packageInformationId:
type: number
description: The identifier of any associated package information.
nullable: true
additionalProperties: false
required:
- kind
- scheme
- identifier
- packageInformationId
MonikerResultsResponse:
type: object
properties:
locations:
type: array
items:
$ref: '#/components/schemas/Location'
count:
type: number
description: The total number of matching locations for this moniker.
additionalProperties: false
required:
- locations
- count
PackageInformationResponse:
type: object
properties:
name:
type: string
description: The name of the package.
version:
type: string
description: The package version.
nullable: true
additionalProperties: false
required:
- name
- version
nullable: true