aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/core/rest
Commit message (Collapse)AuthorAgeFilesLines
* Move REST functionality to separate projectJakob Odersky2018-10-0926-1628/+0
|
* Move core types into core-types projectJakob Odersky2018-10-091-1/+11
| | | | | | | | | Note that xyz.driver.core.FutureExtensions was moved to xyz.driver.core.rest as it (only) contained logic that dealt with service exceptions, something that belongs into core-rest and must not be depended upon by core-types. This is a breaking change.
* Fix `responseToListResponse` for `x-resource-count` header in lowercase (#227)Sergey Nastich2018-09-301-3/+1
|
* Fix `responseToListResponse` for empty non-paginated responses (#225)Sergey Nastich2018-09-221-1/+1
|
* Improve PhoneNumber (#222)Sergey Nastich2018-09-191-0/+12
| | | | | * Add support for extensions * Add PathMatcher and allow parsing JSON from string * Add a number of convenience methods which are to be used instead of `toString`
* Add $ to string interpolator in DnsDiscovery (#220)v2.0.0-M1Zach Smith2018-09-121-1/+1
|
* Add authentication method to swagger specJakob Odersky2018-09-121-0/+9
|
* Add updated swagger UI that allows selecting schemeJakob Odersky2018-09-121-0/+8
|
* Move platform back into init and use a configurable DNS discoveryJakob Odersky2018-09-123-2/+29
|
* Fix typos and naming of actor systemJakob Odersky2018-09-121-1/+1
|
* Add tracing to client HTTP transport and improve tracing tagsJakob Odersky2018-09-124-38/+69
|
* Trait-based initialization and other utilitiesJakob Odersky2018-09-129-24/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the concept of a 'platform', a centralized place in which environment-specific information will be managed, and provides common initialization logic for most "standard" apps. As part of the common initialization, other parts of core have also been reworked: - HTTP-related unmarshallers and path matchers have been factored out from core.json to a new core.rest.directives package (core.json extends those unmarshallers and matchers for backwards compatibility) - CORS handling has also been moved to a dedicated utility trait - Some custom headers have been moved from raw headers to typed ones in core.rest.headers - The concept of a "reporter" has been introduced. A reporter is a context-aware combination of tracing and logging. It is intended to issue diagnostic messages that can be traced across service boundaries. Closes #192 Closes #195
* Add `Cache-Control: no-cache` to all responses of DriverRoutes. (#190)Sergey Nastich2018-09-101-6/+14
| | | | This change is intended to battle IE (even IE 11) caching all GET responses (and not making any new ones) that don't list those headers
* Upgrade sbt-settings to major version 2 (#201)Jakob Odersky2018-08-241-11/+14
| | | | | | | | | | | | | | | | This will affect development workflow: instead of running `sbt release` to tag and publish a new version, the release process is now as follows: 1. Create a git tag on a revision that should be published. The tag must be in the format `v[0-9].*` 2. Push the tag to GitHub `git push --tags` 3. CI will build that tag and publish the resulting binary to our artifactory Since the new sbt settings do not enable advanced or risky language features globally anymore (such as higher kinds, reflective calls and implicit conversions), the other changes in this PR either import language features locally or refactor the code to avoid using them entirely.
* Add responseToListResponse to RestService (#199)v1.12.4Zach Smith2018-08-221-0/+16
| | | | | | * Add responseToListResponse to RestService * Make pagination optional
* Add UnauthorizedException and catch it in AuthProvider (#198)Zach Smith2018-08-213-1/+11
| | | | | | * Add AuthorizationException and pass it through in authorize directive * Move recover to authenticator method
* [RFC] Use akka's built-in authenticate/authorize directives in AuthProvider ↵Zach Smith2018-08-013-50/+53
| | | | | | | | | | (#136) * Use akka's built-in authenticate/authorize directives in AuthProvider * Move AuthProvider companion object to AuthProvider file, move realm to parameter of AuthProvider * Add secondary constructor to maintain ABI compat
* Fix pagination directive failing on empty responses (#182)v1.11.7Sergey Nastich2018-07-111-1/+1
|
* Add `completeWithPagination` directive (#180)Sergey Nastich2018-07-111-4/+19
| | | | | * Extracts pagination from the request * Adds ResourceCount/PageCount headers to the response
* Added ProxyRoute to enable proxying calls to other services (#177)v1.11.4Satya Boora2018-06-211-0/+26
|
* Add `Connection: close` header to all responses in order to mitigate ↵v1.11.2Sergey Nastich2018-06-141-1/+6
| | | | connection pool issues with envoy (#175)
* Add service exception json formatters and pass through exceptions in ↵v1.9.4zachdriver2018-05-253-6/+18
| | | | HttpRestServiceTransport (#168)
* TRIAL-371 Support sorting (#159)v1.9.2Kseniya Tomskikh2018-05-111-0/+40
| | | | | | | | | | * TRIAL-371 Sorting for services * TRIAL-371 Fixed extract sorting parameters * TRIAL-371 Fixed varname * TRIAL-371 Review fixes
* API-1595 Move rejectionHandler to DriverApp to avoid 404 rejection issues (#167)v1.9.1zachdriver2018-05-091-11/+1
|
* Complete the request with a 401 status code to avoid WWW-authenticate header ↵v1.8.25Satya Boora2018-04-301-1/+11
| | | | issue (#160)
* ListResponse and Unmarshallers improvementsv1.8.23Sergey Nastich2018-04-171-0/+5
| | | | | | * Add an alternative `ListResponse` constructor allowing optional pagination * Unmarshal JsStrings from query parameters
* Fixed merge JsValues when field is absent in old value (#153)v1.8.21Kseniya Tomskikh2018-04-121-4/+4
|
* Use AuthenticationFailedRejection to send 401 back to the client (#151)v1.8.20Satya Boora2018-04-101-3/+3
|
* Merge pull request #150 from drivergroup/fix-patch-jsonv1.8.18Kseniya Tomskikh2018-04-101-0/+6
|\ | | | | Created patch method for RestService with merge-patch+json media type
| * Review fixKseniya Tomskikh2018-04-101-3/+3
| |
| * Created patch method for RestService with merge-patch+json media typeKseniya Tomskikh2018-04-091-0/+6
| |
* | Merge branch 'master' into TM-1431Aleksandr2018-04-061-17/+13
|\|
| * Merge pull request #142 from drivergroup/mdc-trackingv1.8.14Vlad Uspensky2018-04-041-17/+13
| |\ | | | | | | Correct `trackingId` placement to the MDC
| | * Correct `trackingId` placement to the MDCvlad2018-03-261-10/+4
| | |
| | * Correct `trackingId` placement to the MDCvlad2018-03-241-9/+11
| | |
* | | Ranamed header 'ClientFingerprintHeader'Aleksandr2018-04-061-1/+1
| | |
* | | Removed fingerprint hash from ServiceRequestContext and it's derivatesAleksandr2018-04-042-9/+1
| | |
* | | Merge branch 'master' into TM-1431Aleksandr2018-04-031-0/+104
|\| |
| * | Use patch unmarshallerZach Smith2018-03-252-107/+104
| | |
| * | Curry the PatchRetrievable apply methodZach Smith2018-03-201-2/+2
| | |
| * | Enforce application/merge-patch+json Content-TypeZach Smith2018-03-201-19/+35
| | |
| * | Add implicit ServiceRequestContext to PatchRetrievableZach Smith2018-03-161-16/+26
| | |
| * | Add PatchSupport trait and testsZach Smith2018-03-161-0/+81
| |/
* | Merge branch 'master' into TM-1431Aleksandr2018-03-122-13/+21
|\|
| * Fix ServiceException classes to set Exception message for stack tracesZach Smith2018-03-091-13/+11
| |
| * Review fixKseniya Tomskikh2018-03-071-1/+1
| |
| * Created directive for optional paginationKseniya Tomskikh2018-03-061-0/+10
| |
* | Implemented extraction of fingerprint header; Added fingerprint hash to ↵Aleksandr2018-03-122-3/+20
| | | | | | | | ServiceRequestContext and AuthorizedServiceRequestContext classes
* | Implemented 'X-CLIENT-FINGERPRINT' extraction from HTTP headerAleksandr2018-03-061-2/+3
|/
* Use Akka's parameter directive to extract a paginationJakob Odersky2018-03-011-29/+6
|