Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @GET
- @Path("/top/{number}/{orderby}")
- @Produces(MediaType.APPLICATION_JSON)
- public String produceJSON( @PathParam("number") String number,
- @PathParam("orderby") String orderby
- ) throws SQLException {
- String quest = "SELECT * from channels ORDER BY "+ orderby +" DESC LIMIT "+ number;
- rest r = new rest(quest);
- String s = r.getchannelDetails();
- return s;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement