Send empty body in POST request in Retrofit

My api expects an empty json body ({ }) when making post requests. How do I set this up in Retrofit and Jackson? I tried passing null, and empty string, and "{}" but could not get this to work. @POST(my/url) Call<MyResponse> createPostRequest...
more »

2017-06-15 22:06 (1) Answers

Microservices Restful API - DTOs or not?

REST API - DTOs or not? I would like to re-ask this question in Microservices' context. Here is the quote from original question. I am currently creating a REST-API for a project and have been reading article upon article about best practices....
more »

2017-06-15 18:06 (2) Answers

What does Java's BST ZoneId represent?

I have stored in the DB this Time Frame: any day from 15:00 to 16:00 in LONDON (BST) I need to execute a program IF when I receive an event is between this Time Frame. I am running the Test now in Paris (16:22) where in London is 15:22 (so in betwe...
more »

2017-06-15 16:06 (1) Answers

Replace new method dexlib2 failing

I am using dexlib2 to rewriting existing apk through one jar utility. I want to change one instruction with my own instruction. It is basically returning some object and I want to replace it with another method which is returning different object. It...
more »

2017-06-14 23:06 (0) Answers

Linear Layout using weight to adapt screan size

I am trying to use a linear layout as a row for my recycleView/adapter, basicly my row has 3 elements: a image, a textView and a checkButton with some text. What i want is the image ocupy like 50% of the width plus 40 height, so i set the weight of ...
more »

2017-06-14 22:06 (4) Answers

Polymorphic Deserialization Issue with Jackson

I have the following classes that I want to deserialize a JSON string to using Jackson. PushNotificationMessage.java public class PushNotificationMessage { @JsonProperty("device_info") private DeviceInfo deviceInfo; private String conte...
more »

2017-06-14 18:06 (1) Answers

JSON parsing gives me NULL data

I am using Jackson library to try and parse my JSON file. My JSON is actually an ARRAY of JSON Objects: JSON ARRAY: [ { "Id" : "0", "name" : "John" }, { "Id" : "1", "name" : "Doe" } ] POJO CLASS: @JsonIgnoreProperties(ignoreUnknown =...
more »

2017-06-14 13:06 (2) Answers

What are the platform common classes in Kotlin?

I'd like to use Kotlin to define interfaces between client and server. Currently, Kotlin can be used in 3 platforms: Java, Android, Web(JS). What Kotlin build-in classes can I use across all these platform? I would expect some common library depen...
more »

2017-06-14 09:06 (1) Answers