summaryrefslogtreecommitdiffstats
path: root/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate LoggingRequestHandler constructors taking AccessLogBjørn Christian Seime2021-01-211-1/+2
| | | | | Add replacement constructors without AccessLog. Remove use of deprecated constructors for internal handlers.
* Remove old /document/v1 handlerJon Marius Venstad2020-11-031-422/+5
|
* Use trace level from parameters, and pass on to ResponseJon Marius Venstad2020-09-241-0/+1
|
* Inject container threadpool directly to FeedHandler and RestApiBjørn Christian Seime2020-09-031-9/+14
|
* Remove control of slow start. That was a blind alley.Henning Baldersheim2020-05-291-4/+1
|
* LogLevel.WARNING -> Level.WARNINGgjoranv2020-04-251-1/+1
|
* Import java.util.logging.Level instead of com.yahoo.log.LogLevelgjoranv2020-04-251-1/+1
|
* Log warning on internal exception during Document V1 request handlingTor Brede Vekterli2019-10-311-0/+2
|
* Support `cluster` parameter for Document V1 Get operationsTor Brede Vekterli2019-07-191-2/+3
| | | | | | Makes point lookup cluster routing functionality equal to that of visiting operations. Especially useful as the difference between these is minimal when used via the Document V1 REST API.
* Eradicate warningsOlli Virtanen2019-05-101-2/+1
|
* Explicitly require non-empty (or null) routeJon Bratseth2019-04-291-1/+8
|
* Minor cleanupJon Bratseth2019-04-291-46/+48
|
* Revert "Merge pull request #9207 from ↵Jon Bratseth2019-04-291-6/+11
| | | | | | | vespa-engine/revert-9204-bratseth/document-api-donct-blame-users" This reverts commit 3575ceec65b3787a4f3e412c86479c79cf1d6453, reversing changes made to e535c8fa9c1264d7164fef7f55d10dc585e13e88.
* Revert "Separate user and system exceptions"Harald Musum2019-04-271-11/+6
|
* Separate user and system exceptionsJon Bratseth2019-04-261-6/+11
|
* Replace the multipurpose VespaXMLFeeder.Operation with more to the point ↵Henning Baldersheim2019-04-251-11/+11
| | | | classes with proper final members.
* Return HTTP 400 instead of 403 on bad requestsTor Brede Vekterli2019-01-231-2/+2
| | | | | Add explicit checking of HTTP response status codes to many REST API unit tests.
* Add and use cross-cluster bucket space configTor Brede Vekterli2018-12-071-0/+11
| | | | | | | | Adds a new config `AllClustersBucketSpacesConfig` which includes all document type to bucket space mappings across all configured content clusters. Inject this config into `RestApi` to ensure all changes to the mapping is observed. This also removes the remaining per-request config fetching during Document V1 visit ops.
* Revert "Add and use cross cluster bucket space config"Tor Brede Vekterli2018-12-061-11/+0
|
* Add and use cross-cluster bucket space configTor Brede Vekterli2018-12-051-0/+11
| | | | | | | | Adds a new config `AllClustersBucketSpacesConfig` which includes all document type to bucket space mappings across all configured content clusters. Inject this config into `RestApi` to ensure all changes to the mapping is observed. This also removes the remaining per-request config fetching during Document V1 visit ops.
* Inject RestApi ClusterListConfig instead of fetching it every timeTor Brede Vekterli2018-12-051-2/+15
|
* Support cross-document type visiting via /document/v1/ rootTor Brede Vekterli2018-10-091-1/+18
| | | | | | | | | | | | | | | | | Requires `cluster` to be set since we don't have a document type to auto-infer the target cluster from. Can use `bucketSpace` parameter to explicitly state the target bucket space to visit (if not given, implicitly visits the 'default' space). Note: since we are not bound to a single document type, the field set used is `[all]`, not `doctype:[document]`. This means that this does _not_ have parity with non-root Document V1 visitor requests, though it _does_ have parity with legacy `/visit` and `vespa-visit`. To have same behavior for a single document type, use an explicit document `selection=mydoctype` parameter combined with a `fieldSet` parameter of `mydoctype:[document]`. This fixes #5794
* Ensure selection parameter sub-expression is complete and validTor Brede Vekterli2018-04-101-2/+22
| | | | | | Also add validation that specified group only contains allowed text characters. This mirrors the check that is done for group names in IDs when documents are originally fed.
* Allow both group/numeric ID and selection to be specified at the same timeTor Brede Vekterli2018-04-101-10/+14
| | | | | Resulting selection expression is a conjunction of the group/number ID sub-expression and the provided selection sub-expression.
* Improve validation and escaping of number/group visiting parametersTor Brede Vekterli2018-04-101-9/+42
| | | | Also use explicit `==` equality operator instead of `=` in generated expression.
* Also support fieldSet for Document V1 get operationsTor Brede Vekterli2018-02-081-3/+4
| | | | Now has parity with visit operations and the legacy API.
* Refactor extraction of visit parameters from HTTP request parametersTor Brede Vekterli2018-01-311-29/+42
|
* Add `fieldSet` and `concurrency` parameter support to Document V1 visiting APITor Brede Vekterli2018-01-311-7/+31
| | | | This fixes #4847
* use LoggingRequestHandler.Context in constructorsArne Juul2018-01-051-4/+7
| | | | | * this implicitly wires in a Metric, allowing handler invocations to be measured in the ThreadedRequestHandler superclass.
* Add wantedDocumentCount parameter to Document V1 visiting APITor Brede Vekterli2017-09-281-17/+43
| | | | | | | | | | | Visiting will continue until the provided number of documents has been returned, or the session times out. Parameter is bounded by an implementation defined maximum. Remove old visit() interface method, as it should not have been covered by an ExportPackage and therefore no one should have managed to actually use it externally. This fixes #3394
* Update copyright headersJon Bratseth2017-06-141-1/+1
|
* Revert "Update copyright headers"Jon Bratseth2017-06-141-1/+1
|
* Update copyright headersJon Bratseth2017-06-141-1/+1
|
* Revert "Copyright header"Jon Bratseth2017-06-131-1/+1
|
* Copyright headerJon Bratseth2017-06-131-1/+1
|
* Report feed metrics against /document/v1valerijf2017-05-111-3/+4
|
* Extend APIs with condition-not-met.Haakon Dybdahl2017-03-061-5/+6
|
* Merge pull request #1865 from yahoo/dybdahl/add-routeHaakon Dybdahl2017-02-271-3/+6
|\ | | | | Add route option, to be tested in system test.
| * Add route option, to be tested in system test.Haakon Dybdahl2017-02-271-3/+6
| |
* | Make visit work for numbers.Haakon Dybdahl2017-02-271-1/+6
|/
* Merge pull request #1608 from yahoo/dybdahl/threadsHenning Baldersheim2017-01-261-4/+12
|\ | | | | Make document API use max 40% of threads, and feeding use max 40%.
| * Make final.Haakon Dybdahl2017-01-261-2/+2
| |
| * Make document API use max 40% of threads, and feeding use max 40%.Haakon Dybdahl2017-01-261-3/+11
| |
* | Allow visiting based on group selection automatically.Haakon Dybdahl2017-01-261-6/+8
|/
* update testHaakon Dybdahl2017-01-241-1/+3
|
* Allow more threads for document/v1 api.Haakon Dybdahl2017-01-241-1/+1
|
* Support document-api in applicationJon Bratseth2016-09-281-3/+6
|
* Make constant.Haakon Dybdahl2016-09-141-2/+3
|
* Set correct content-type.Haakon Dybdahl2016-09-141-0/+4
|
* update author field.Haakon Dybdahl2016-06-171-2/+2
|