This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AdRequest adRequest = AdRequest.newBuilder().setAdSpaceName(adSpaceNames[0]).build(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AdRequest\",\"namespace\":\"com.flurry.avroserver.protocol.v1\",\"fields\":[{\"name\":\"adSpaceName\",\"type\":\"string\"},{\"name\":\"location\",\"type\":{\"type\":\"record\",\"name\":\"Location\",\"fields\":[{\"name\":\"lat\",\"type\":\"float\",\"default\":0.0},{\"name\":\"lon\",\"type\":\"float\",\"default\":0.0}]},\"default\":\"null\"}]}"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"adSpaceName":"splash_screen","location":{"lat":12.231212,"lon":23.3435}, | |
}' http://localhost:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"protocol": "AvroAdResponse", "namespace": "com.flurry.avroserver.protocol.v1", | |
"types": [ | |
{"name": "Ad", "type": "record", | |
"fields": [ | |
{"name": "adSpace", "type": "string"}, | |
{"name": "adName", "type": "string"} | |
] | |
}, | |
{"name": "AdResponse", "type": "record", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"protocol": "AvroAdRequest", "namespace": "com.flurry.avroserver.protocol.v1", | |
"types": [ | |
{"name": "Location", "type": "record", | |
"fields": [ | |
{"name": "lat", "type": "float", "default":0.0}, | |
{"name": "lon", "type": "float", "default":0.0} | |
] | |
}, | |
{"name": "AdRequest", "type": "record", |