Sunny Austin
Sunny Austin

Reputation: 11

Test Web API using Advance Rest Client(GET) when Parameter type is Class

I want to Call API method(GET Request) GetInfo(Request request), This Request class has 2 parameters,

public class Request
    {

        public int MachineId;
        public int PackageId;

    }

I know if i have Parameters of type int/string in API method, i would call it as http://localhost/Service/api/Info/GetInfo?MachineId=1&PackageId=1, I am not sure how to add Request parameters to my URL in this case. Thanks in Advance.

Upvotes: 0

Views: 180

Answers (0)

Related Questions