Skip to content

How to pass request parameters as object ? #520

Description

@anton-arsentyev

Hello, is there a way to pass object as a parameter to interface and get all fields as query params ?

Example:

Interface:

@RequestLine("POST /api/doSomething")
void doSomething(@QueryObject Parameters parameters);

Model:

class Parameters {
  String name;
  String secondName;
}

And result request would be:

{host}/api/doSomething?name=name123&secondName=sn222

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationIssues that require updates to our documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions