-
Notifications
You must be signed in to change notification settings - Fork 832
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1449 lines (1444 loc) · 43.5 KB
/
Copy pathopenapi.yaml
File metadata and controls
1449 lines (1444 loc) · 43.5 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
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: OpenGrok RESTful API
description: |
OpenGrok RESTful API documentation. Unless overridden on an operation, endpoints are accessible under `/api/v1`.
Protected endpoints require an authentication bearer token configured in the web application and supplied via the
`Authorization` HTTP header (`Authorization: Bearer <token>`). Bearer tokens are accepted over HTTPS connections;
HTTP token use has to be explicitly enabled with the `allowInsecureTokens` configuration option and should be limited
to trusted internal deployments.
The access to the `/annotation`, `/file`, `/history`, `/search` and `/suggest` endpoints is controlled with the
authorization framework and requires user authentication if set up.
The `/system/ping`, `/system/indextime`, `/suggest/config` and `/metrics` endpoints are public and do not require
bearer token authentication.
Some APIs are asynchronous. They return status code 202 (Accepted) and a `Location` header that contains the URL for
the status endpoint to check for the result of the API call. Once the status API returns a result other than 202, the
client should issue a DELETE request to this URL to clean up server resources.
For all entry points that modify web application configuration, the configuration has to be retrieved and stored on
disk (using the configuration-specific entry points) in order to be persistent, for example after application server
restart or web application redeploy.
version: "1.0.0"
servers:
- url: /api/v1
tags:
- name: Annotation
- name: Configuration
- name: File
- name: History
- name: Directory listing
- name: System
- name: Messages
- name: Monitoring
- name: Groups
- name: Projects
- name: Repositories
- name: Search
- name: Suggester
- name: Status
paths:
/annotation:
get:
tags: [Annotation]
summary: Get annotation for a file
operationId: getAnnotation
parameters:
- $ref: '#/components/parameters/PathQuery'
responses:
'200':
description: Annotation entries for the requested file.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AnnotationEntry'
example:
- revision: c55d5891
author: "Adam Hornáček"
description: "changeset: c55d5891\nsummary: Rewrite README.txt to use markdown syntax\nuser: Adam Hornáček <adam.hornacek@oracle.com>\ndate: Wed Aug 30 17:42:12 CEST 2017"
version: "1/15"
- revision: 5e0c6b22
author: Vladimir Kotal
description: "changeset: 5e0c6b22\nsummary: bump year\nuser: Vladimir Kotal <vlada@devnull.cz>\ndate: Thu Jul 18 14:43:01 CEST 2019"
version: "14/15"
/configuration/authorization/reload:
post:
tags: [Configuration]
summary: Reload authorization framework
description: This is an asynchronous API endpoint.
operationId: reloadAuthorizationFramework
security:
- bearerAuth: []
requestBody:
required: false
content:
text/plain:
schema:
type: string
responses:
'204':
description: Authorization framework reloaded.
'202':
$ref: '#/components/responses/AcceptedAsync'
/configuration:
get:
tags: [Configuration]
summary: Return XML representation of configuration
operationId: getConfiguration
security:
- bearerAuth: []
responses:
'200':
description: XML representation of the current configuration.
content:
application/xml:
schema:
type: string
example: |
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.8.0_172" class="java.beans.XMLDecoder">
<object class="org.opengrok.indexer.configuration.Configuration" id="Configuration0">
<void property="allowLeadingWildcard">
<boolean>true</boolean>
</void>
</object>
</java>
put:
tags: [Configuration]
summary: Set configuration from XML representation
description: This is an asynchronous API endpoint.
operationId: setConfiguration
security:
- bearerAuth: []
requestBody:
required: true
content:
application/xml:
schema:
type: string
example: |
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.8.0_172" class="java.beans.XMLDecoder">
<object class="org.opengrok.indexer.configuration.Configuration" id="Configuration0">
<void property="allowLeadingWildcard">
<boolean>true</boolean>
</void>
</object>
</java>
responses:
'201':
description: Configuration accepted.
content:
application/json:
schema: {}
'202':
$ref: '#/components/responses/AcceptedAsync'
/configuration/{field}:
get:
tags: [Configuration]
summary: Return a specific configuration field
operationId: getConfigurationField
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ConfigurationField'
responses:
'200':
description: Configuration field value.
content:
application/json:
schema: {}
put:
tags: [Configuration]
summary: Set a specific configuration field
description: This is an asynchronous API endpoint.
operationId: setConfigurationField
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ConfigurationField'
- name: reindex
in: query
description: Specifies if the underlying data were also reindexed. Refreshes some searchers and additional data structures.
required: false
schema:
type: boolean
requestBody:
required: true
content:
text/plain:
schema:
type: string
example: string value of the field to set
responses:
'204':
description: Configuration field updated.
'202':
$ref: '#/components/responses/AcceptedAsync'
/file/content:
get:
tags: [File]
summary: Get file content
description: |
Honors the `Accept` header. If the value of the header is `text/plain` and there is a document in the index that
has the genre detected as plain text, the contents of the document will be returned. If the document is not found,
HTTP error 404 will be returned. If the genre of the document is not plain text, HTTP error 406 will be returned.
Alternatively, use `application/octet-stream` to bypass the document and genre check. The `Content-Type` header of
the reply will be set accordingly.
operationId: getFileContent
parameters:
- $ref: '#/components/parameters/PathQuery'
responses:
'200':
description: File content.
content:
text/plain:
schema:
type: string
example: |
foo
bar
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Document not found.
'406':
description: Document genre is not plain text.
/file/genre:
get:
tags: [File]
summary: Get file genre
operationId: getFileGenre
parameters:
- $ref: '#/components/parameters/PathQuery'
responses:
'200':
description: File genre as identified by analyzer.
content:
text/plain:
schema:
type: string
enum: [PLAIN, XREFABLE, IMAGE, DATA, HTML]
example: PLAIN
/file/defs:
get:
tags: [File]
summary: Get file definitions
operationId: getFileDefinitions
parameters:
- $ref: '#/components/parameters/PathQuery'
responses:
'200':
description: File definitions.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/FileDefinition'
example:
- type: function
signature: "(const unsigned char * in,unsigned char * out,size_t len,const AES_KEY * key,unsigned char * ivec,const int enc)"
text: "void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,"
symbol: AES_cbc_encrypt
lineStart: 5
lineEnd: 20
line: 20
namespace: null
/history:
get:
tags: [History]
summary: Get history entries
operationId: getHistory
parameters:
- name: path
in: query
description: Path of file/directory to get history for, relative to source root.
required: true
schema:
type: string
- name: withFiles
in: query
description: Whether to include list of files.
required: false
schema:
type: boolean
- name: start
in: query
description: Start index.
required: false
schema:
type: integer
format: int32
- name: max
in: query
description: Number of entries to get.
required: false
schema:
type: integer
format: int32
default: 1000
responses:
'200':
description: History entries.
content:
application/json:
schema:
$ref: '#/components/schemas/HistoryResponse'
example:
entries:
- revision: 86b0ab6b
date: 1565163646000
author: Adam Hornacek <adam.hornacek@oracle.com>
tags: null
message: Try to use mvnw in CI
files:
- /opengrok/docker/README.md
start: 5
count: 3
total: 24
/list:
get:
tags: [Directory listing]
summary: Get directory entries
operationId: getDirectoryListing
parameters:
- name: path
in: query
description: Path of file/directory to get listing for, relative to source root, starting with `/`.
required: true
schema:
type: string
responses:
'200':
description: Directory entries.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/DirectoryEntry'
example:
- path: /lucene/.github
numLines: 178
loc: 125
date: 1673456294670
description: null
pathDescription: ""
isDirectory: true
size: null
- path: /lucene/.asf.yaml
numLines: 25
loc: 21
date: 1673456294670
description: null
pathDescription: ""
isDirectory: false
size: 574
/system/includes/reload:
put:
tags: [System]
summary: Reload all include files for web application
operationId: reloadIncludes
security:
- bearerAuth: []
responses:
'204':
description: Include files reloaded.
/system/indextime:
get:
tags: [System]
summary: Retrieve last index time
description: The time is in ISO 8601 format in UTC time zone.
operationId: getLastIndexTime
security: []
responses:
'200':
description: Last index time.
content:
application/json:
schema:
type: string
format: date-time
example: "2021-02-15T16:39:16.409+00:00"
/messages:
post:
tags: [Messages]
summary: Add message to the system
description: |
Usable values for `messageLevel` are `success`, `info`, `warning`, and `error`. This affects the CSS class of
the displayed message. Values in the `tags` list can be `main`, a project name, or a project group name.
The format of `duration` is the same as Java's `java.time.Duration` class.
operationId: addMessage
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MessageCreateRequest'
example:
tags: [main]
messageLevel: info
text: test message
duration: PT10M
responses:
'201':
description: Message added.
delete:
tags: [Messages]
summary: Delete messages with specified tag
operationId: deleteMessages
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/MessageTag'
requestBody:
required: true
content:
text/plain:
schema:
type: string
example: string value of the message text - only messages with the text (and specified tag) will be deleted
responses:
'204':
description: Matching messages deleted.
get:
tags: [Messages]
summary: Return all messages with specified tag
operationId: getMessages
parameters:
- $ref: '#/components/parameters/MessageTag'
responses:
'200':
description: Messages with specified tag.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Message'
example:
- expired: false
created: "2019-01-23 20:39:31 CET"
tags: [main]
expiration: "2019-01-23 20:49:31 CET"
cssClass: class
text: test message
/metrics/prometheus:
get:
tags: [Monitoring]
summary: Retrieve web application metrics in Prometheus format
operationId: getPrometheusMetrics
servers:
- url: /
security: []
responses:
'200':
description: Prometheus metrics.
content:
text/plain:
schema:
type: string
/system/pathdesc:
post:
tags: [System]
summary: Update path descriptions for web application
description: |
Refreshes path descriptions. The web application stores descriptions in a file under the data root so it is not
necessary to load path descriptions manually after each web application redeploy. Paths are relative to source
root, starting with `/`.
operationId: updatePathDescriptions
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PathDescription'
example:
- path: /foo
description: foo foo
- path: /bar
description: bar
responses:
'204':
description: Path descriptions updated.
/system/version:
get:
tags: [System]
summary: Get web application version as string
operationId: getWebAppVersion
responses:
'200':
description: Web application version.
content:
text/plain:
schema:
type: string
example: 1.9.0 (a5ac05426bc5029158fedffee1cd44abf033bb61)
/system/ping:
get:
tags: [System]
summary: Check if web app is deployed and alive
description: This endpoint is used by the indexer when running with the `-U` option.
operationId: ping
security: []
responses:
'200':
description: Web application is alive.
/groups:
get:
tags: [Groups]
summary: Return a list of all groups
operationId: getGroups
responses:
'200':
description: List of groups.
content:
application/json:
schema:
type: array
items:
type: string
example: [foo, bar]
/groups/{group}/allprojects:
get:
tags: [Groups]
summary: Return list of all projects for a group
description: Includes projects of any sub-groups.
operationId: getGroupProjects
parameters:
- $ref: '#/components/parameters/GroupName'
responses:
'200':
description: List of all projects for the group.
content:
application/json:
schema:
type: array
items:
type: string
example: [foo, bar]
/groups/{group}/pattern:
get:
tags: [Groups]
summary: Return pattern for given group
operationId: getGroupPattern
parameters:
- $ref: '#/components/parameters/GroupName'
responses:
'200':
description: Group pattern.
content:
text/plain:
schema:
type: string
example: ^foo-.*
/groups/{group}/match:
post:
tags: [Groups]
summary: Check if project name matches group pattern
operationId: matchGroupPattern
parameters:
- $ref: '#/components/parameters/GroupName'
requestBody:
required: true
content:
text/plain:
schema:
type: string
example: name of the project
responses:
'200':
description: Name matches group pattern.
'204':
description: Name does not match group pattern.
/projects:
get:
tags: [Projects]
summary: Return a list of all projects
operationId: getProjects
responses:
'200':
description: List of projects.
content:
application/json:
schema:
type: array
items:
type: string
example: [foo, bar]
post:
tags: [Projects]
summary: Add project
description: |
This merely adds the project and its repositories to the web application configuration. The project will not be
searchable, and thus appear in the UI, until it is indexed. If the project is already present in the
configuration, the list of its repositories will be refreshed if history is enabled.
operationId: addProject
security:
- bearerAuth: []
requestBody:
required: true
content:
text/plain:
schema:
type: string
example: text/plain name of the project
responses:
'201':
description: Project added.
/projects/{project}:
delete:
tags: [Projects]
summary: Delete project
description: Removes the project and its repositories from the web application configuration and deletes project-specific data such as index, cross-reference pages, history index and suggester data.
operationId: deleteProject
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ProjectName'
responses:
'204':
description: Project deleted.
/projects/{project}/data:
delete:
tags: [Projects]
summary: Delete project index data
description: Deletes project index data but keeps the project in web application configuration so it can be indexed from scratch. Project source data is left intact. The project is also marked as not indexed.
operationId: deleteProjectData
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ProjectName'
responses:
'204':
description: Project index data deleted.
/projects/{project}/historycache:
delete:
tags: [Projects]
summary: Delete history cache for a project
description: Returns list of repository paths for which the cache was successfully deleted.
operationId: deleteProjectHistoryCache
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ProjectName'
responses:
'200':
description: Repository paths for which history cache was deleted.
content:
application/json:
schema:
type: array
items:
type: string
example: [/project/repository1, /project/repository2]
/projects/{project}/annotationcache:
delete:
tags: [Projects]
summary: Delete annotation cache for a project
description: Returns list of repository paths for which the cache was successfully deleted.
operationId: deleteProjectAnnotationCache
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ProjectName'
responses:
'200':
description: Repository paths for which annotation cache was deleted.
content:
application/json:
schema:
type: array
items:
type: string
example: [/project/repository1, /project/repository2]
/projects/{project}/indexed:
put:
tags: [Projects]
summary: Mark project as indexed
description: This asynchronous endpoint is used by the Indexer once it finishes indexing a project.
operationId: markProjectIndexed
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ProjectName'
requestBody:
required: false
content:
text/plain:
schema:
type: string
example: ""
responses:
'204':
description: Project marked as indexed.
'202':
$ref: '#/components/responses/AcceptedAsync'
/projects/{project}/files:
get:
tags: [Projects]
summary: Get list of files tracked by the index database for given project
operationId: getProjectFiles
parameters:
- $ref: '#/components/parameters/ProjectName'
responses:
'200':
description: Files tracked by the index database.
content:
application/json:
schema:
type: array
items:
type: string
example: [/project/foo.txt, /project/bar.txt]
/projects/{project}/property/{propertyname}:
put:
tags: [Projects]
summary: Set property value for the project
description: Per-project properties are documented at https://github.com/oracle/opengrok/wiki/Per-project-configuration#properties
operationId: setProjectProperty
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/ProjectName'
- $ref: '#/components/parameters/PropertyName'
requestBody:
required: true
content:
text/plain:
schema:
type: string
example: body - string representation of the value to set
responses:
'204':
description: Project property updated.
get:
tags: [Projects]
summary: Return the property value
operationId: getProjectProperty
parameters:
- $ref: '#/components/parameters/ProjectName'
- $ref: '#/components/parameters/PropertyName'
responses:
'200':
description: Project property value.
content:
application/json:
schema: {}
/projects/{project}/repositories:
get:
tags: [Projects]
summary: Return a list of repositories for the specified project
description: Native path separators of the system running the service will be used for repository paths.
operationId: getProjectRepositories
parameters:
- $ref: '#/components/parameters/ProjectName'
responses:
'200':
description: Project repositories.
content:
application/json:
schema:
type: array
items:
type: string
example:
- /opengrok-master/testdata/repositories/teamware
- /opengrok-master/testdata/sources/rfe2575
- /opengrok-master/testdata/repositories/rcs_test
- /opengrok-master
/projects/{project}/repositories/type:
get:
tags: [Projects]
summary: Return types of project repositories
operationId: getProjectRepositoryTypes
parameters:
- $ref: '#/components/parameters/ProjectName'
responses:
'200':
description: Repository types.
content:
application/json:
schema:
type: array
items:
type: string
example: [RCS, git, SCCS]
/projects/indexed:
get:
tags: [Projects]
summary: Return a list of indexed projects
operationId: getIndexedProjects
responses:
'200':
description: Indexed projects.
content:
application/json:
schema:
type: array
items:
type: string
example: [sc-2, sc-1]
/repositories/property/{field}:
get:
tags: [Repositories]
summary: Return the repository field value
description: |
The repository path is relative to source root. Examples of field names:
- `working` (boolean): is the repository capable of running underlying SCM commands
- `type` (string): type of SCM
- `remote` (boolean): is the SCM source remote
- `parent` (string): origin/parent of the SCM
- `branch` (string): branch identification
- `currentVersion` (string): current revision ID
- `handleRenamedFiles` (boolean): whether to handle renamed files for history cache generation
- `historyEnabled` (boolean): is history enabled
- `annotationCacheEnabled` (boolean): is annotation cache enabled
operationId: getRepositoryProperty
parameters:
- name: field
in: path
required: true
description: Repository field name.
schema:
type: string
- name: repository
in: query
required: true
description: Repository path with native path separators of the machine running the service, starting with path separator.
schema:
type: string
responses:
'200':
description: Repository field value.
content:
application/json:
schema: {}
/search:
get:
tags: [Search]
summary: Return search results
description: The `results` map preserves the order of the `sort` parameter (Lucene scoring order for `relevancy`).
operationId: search
parameters:
- name: full
in: query
description: Full search field value to search for.
schema:
type: string
- name: def
in: query
description: Definition field value to search for.
schema:
type: string
- name: symbol
in: query
description: Symbol field value to search for.
schema:
type: string
- name: path
in: query
description: File path field value to search for.
schema:
type: string
- name: hist
in: query
description: History field value to search for.
schema:
type: string
- name: type
in: query
description: Type of files to search for.
schema:
type: string
- name: projects
in: query
description: Projects to search in.
schema:
type: string
- name: maxresults
in: query
description: Maximum number of documents whose hits will be returned.
schema:
type: integer
default: 1000
- name: start
in: query
description: Start index from which to return results.
schema:
type: integer
- name: maxhitsperfile
in: query
description: Maximum number of matching lines returned per file. `0` returns all matching lines.
schema:
type: integer
default: 0
- name: sort
in: query
description: Sort order for results.
schema:
type: string
default: relevancy
enum: [relevancy, fullpath, lastmodtime]
responses:
'200':
description: Search results.
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResponse'
example:
time: 1229
resultCount: 8
startDocument: 0
endDocument: 7
results:
/onnv/usr/src/lib/libnisdb/db_pickle.cc:
- line: "pickle_file::<b>transfer</b>(pptr p, bool_t (*f) (XDR*, pptr))"
lineNumber: "106"
tag: "function in pickle_file"
/onnv/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Resource.java:
- line: "\tpublic void <b>transfer</b>(Resource donor, long qty) throws PoolsException"
lineNumber: "93"
tag: "method in Resource"
- line: "\tpublic void <b>transfer</b>(Resource donor, List components)"
lineNumber: "110"
tag: "method in Resource"
/suggest:
get:
tags: [Suggester]
summary: Return suggestions
operationId: getSuggestions
parameters:
- name: projects
in: query
description: List of projects for which to retrieve suggestions.
required: true
schema:
type: string
- name: field
in: query
description: Field for which to suggest.
required: true
schema:
type: string
- name: caret
in: query
description: Position of the caret in the input field.
required: true
schema:
type: integer
- name: full
in: query
description: Value of the Full Search input.
schema:
type: string
- name: defs
in: query
description: Value of the Definitions input.
schema:
type: string
- name: refs
in: query
description: Value of Symbol input.
schema:
type: string
- name: path
in: query
description: Value of the File Path input.
schema:
type: string
- name: hist
in: query
description: Value of the History input.
schema:
type: string
- name: type
in: query
description: Value of the Type input.
schema:
type: string
responses:
'200':
description: Suggestions.
content:
application/json:
schema:
$ref: '#/components/schemas/SuggestResponse'
example:
time: 60
suggestions:
- phrase: package
projects: [kotlin]
score: 387
identifier: pprttq
queryText: pprttq
partialResult: false
/suggest/config:
get:
tags: [Suggester]
summary: Return suggester configuration
operationId: getSuggesterConfig
security: []
responses:
'200':
description: Suggester configuration.
content: