json - Pass dynamic values to rest easy web service in java -


my web service in net beans , want pass dynamic values method android studio

my json url :

http://192.168.1.31:8084/adminwebservice/mywebservice/showselectedcategory/bar 

my webservice class is:

@get @path("/showselectedcategory/{strrestrotypes}") @produces(mediatype.application_json) public list<categorytypes> showselectedcategory(@pathparam("strrestrotypes")string[] strrestrotypes) { } 

my entity file contains

@xmlrootelement(name="restaurant") @xmltype(proporder = {"restroid","restroname"}) public class restauranttypes {      private int restroid;     private string restroname;     //getter , setter    } 

through code can pass 1 parameter, , not more in advance , suggestions


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -