aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/core/rest
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* TRIAL-287 Created ListResponse class and directive for pagination parsingKseniya Tomskikh2018-03-011-2/+42
|
* Remove unused abstract config from DriverRouteZach Smith2018-02-261-4/+1
|
* Move cors directives to DriverApp and get rid of custom rejection handlerZach Smith2018-02-221-64/+3
|
* Remove .seal call from DriverRoute rejection handlerZach Smith2018-02-221-1/+0
|
* Call .seal on RejectionHandlerZach Smith2018-02-221-3/+2
|
* Move rejection handler to DriverRouteZach Smith2018-02-201-2/+15
|
* Remove default config valuesZach Smith2018-02-201-1/+2
|
* Remove rejection handler, respond with default set of allowed methods and ↵Zach Smith2018-02-202-13/+69
| | | | origins to all options requests in DriverRoute
* Refactor DriverRoute to use shared directivesZach Smith2018-02-201-11/+3
|
* Move directives to rest packageZach Smith2018-02-201-1/+20
|
* delete with queryArtRand2018-02-131-2/+2
|
* Allowing fingerprints collection from different domainsvlad2018-02-121-0/+1
|
* Overload authorize directive to check against service contextJakob Odersky2018-02-091-26/+35
| | | | | | | | | | | This enables checking permissions when a service request is constructed synthetically. An example where this may be useful is in the case where an authorization token is not available as a header but can be obtained elsewhere, such as a session cookie. The service context may then be explicitly constructed with said token and reuse the existing permissions checking functionality.