Skip to content

Different types for posted and returned data #2

@muliyul

Description

@muliyul

This is a suggestion mixed with a question.
I would like to POST and parse the returned request. Something along the lines:

Map<String, Object> body = new HashMap<>();
body.put("email", "[email protected]");
body.put("password", "s0m3P4s5w0rd");
Rest.one("auth")
       .put(body)
       .post(User.class)
       .request();

However this is currently impossible because the body and the parsed response are coupled. A decouple would be nice.

Is it possible to achieve what I'm seeking with volley-requests?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions