aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/core/rest/package.scala
Commit message (Collapse)AuthorAgeFilesLines
* Move REST functionality to separate projectJakob Odersky2018-10-091-323/+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.
* Add tracing to client HTTP transport and improve tracing tagsJakob Odersky2018-09-121-1/+3
|
* Trait-based initialization and other utilitiesJakob Odersky2018-09-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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.
* [RFC] Use akka's built-in authenticate/authorize directives in AuthProvider ↵Zach Smith2018-08-011-8/+12
| | | | | | | | | | (#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
* 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
* ListResponse and Unmarshallers improvementsv1.8.23Sergey Nastich2018-04-171-0/+5
| | | | | | * Add an alternative `ListResponse` constructor allowing optional pagination * Unmarshal JsStrings from query parameters
* Ranamed header 'ClientFingerprintHeader'Aleksandr2018-04-061-1/+1
|
* Removed fingerprint hash from ServiceRequestContext and it's derivatesAleksandr2018-04-041-1/+0
|
* Merge branch 'master' into TM-1431Aleksandr2018-03-121-0/+10
|\
| * 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-121-1/+8
| | | | | | | | 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 rejection handler, respond with default set of allowed methods and ↵Zach Smith2018-02-201-11/+14
| | | | origins to all options requests in DriverRoute
* Move directives to rest packageZach Smith2018-02-201-1/+20
|
* Allowing fingerprints collection from different domainsvlad2018-02-121-0/+1
|
* Default paginationvlad2018-01-261-0/+5
|
* Add new ResourceCount and PageCount headers to list of allowed CORS headersZach Smith2017-12-141-0/+2
|
* Add headers for resource and page countZach Smith2017-12-111-0/+2
|
* Apply new formattingJakob Odersky2017-11-201-6/+7
|
* Add offset method to PaginationZach Smith2017-11-141-1/+3
|
* OriginatingIP -> OriginatingIpZach Smith2017-11-081-4/+4
|
* Remove unnecessary type annotationZach Smith2017-11-061-1/+1
|
* Add originatingIP to ServiceRequestContextZach Smith2017-11-031-6/+25
|
* Add ExternalServiceException and use in ServiceTransportZach Smith2017-10-311-1/+3
|
* Move implicit class extension to package objectZach Smith2017-10-171-3/+1
|
* Move Implicits to package.scalaZach Smith2017-10-161-1/+18
|
* Consolidate filesZach Smith2017-10-161-3/+20
|
* Split up app package into separate filesZach Smith2017-10-161-11/+38
|
* Refactor rest package into separate filesZach Smith2017-10-121-0/+92