Commits

Jan Lahoda committed 9fa3068

The result of searching for a symbol or type is JSON - mark the outcome as such.

Comments (0)

Files changed (2)

remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Symbol.java

 
     @GET
     @Path("/search")
-    @Produces("text/plain")
+    @Produces("application/json")
     public String findSymbol(@QueryParam("path") String segment, @QueryParam("prefix") String prefix, @QueryParam("casesensitive") @DefaultValue("false") boolean casesensitive, @QueryParam("querykind") String queryKindName) throws IOException, InterruptedException {
         return doFind(segment, prefix, casesensitive, queryKindName, "feature", new SymbolConvertorImpl());
     }

remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Type.java

 
     @GET
     @Path("/search")
-    @Produces("text/plain")
+    @Produces("application/json")
     public String findType(@QueryParam("path") String segment, @QueryParam("prefix") String prefix, @QueryParam("casesensitive") @DefaultValue("false") boolean casesensitive, @QueryParam("querykind") String queryKindName) throws IOException, InterruptedException {
         return doFind(segment, prefix, casesensitive, queryKindName, "class", new TypeConvertorImpl());
     }