Use docker-compose.yml to start postgres, maven to download dependencies (pom.xml). The Spring Boot application was developed and tested on Java SDK 14.
There is a swagger file:
src/main/resources/v1.yaml
Ready to run Idea http scripts:
src/test/kotlin/com/jacekgajek/ads/sample_requests.http
Availible fields: clicks
, impressions
, campaign
, dataSource
, daily
(case insensitive)
- Select fields which you want to use directly with
select
parameter - Group with
groupBy
parameter - Filter data with
filter
parameter (RSQL syntax) - Select native aggregations (
sum
,max
,min
,count
,avg
) - Add custom expression using selected values with
custom
parameter. Aggregations are accessible in format[aggregation]_[field]
, for examplesum_clicks/sum_impressions
. All used variables must be selected in previous steps. - Exclude unwanted fields which was used as intermediate values with
exclude
parameter
See sample_requests.http
for examples.
At the time of writing, app is deployed on heroku on https://mighty-bayou-95598.herokuapp.com
Swagger UI: https://mighty-bayou-95598.herokuapp.com/swagger-ui.html