Google Chrome扩展程序简单REST客户端

Pra*_*u M 12 rest post google-chrome

我正在使用Google Chrome扩展工具Simple REST Client来测试我的Web服务.如何使用多个参数调用post方法.我在互联网上搜索,这个应用程序没有足够的文档.

示例POST方法

    @POST
     @Path("createcategory")
     @Consumes("application/x-www-form-urlencoded")
     @Produces(MediaType.APPLICATION_XML)
     public void CreateCategory(@FormParam("cname") String cname,@FormParam("cdescription") String cdescription) 
    {


     CategoriesBO category = new CategoriesBO();
     category.setCategoryName(cname);
     category.setCategoryDescription(cdescription);

     CategoriesEntityHandler handler = new CategoriesEntityHandler();
     try {
        category = handler.createCategory(category);


    } catch (Exception e) {

    }

}
Run Code Online (Sandbox Code Playgroud)

str*_*ios 15

此链接建议添加

"Content-Type: application/x-www-form-urlencoded" 
Run Code Online (Sandbox Code Playgroud)

在标题框和参数列表中:

(param1=val1&param2=val2&...) 
Run Code Online (Sandbox Code Playgroud)

在数据框中,这对我有用.