Package com.getperka.flatpack.jersey

Examples of com.getperka.flatpack.jersey.ApiDescriber.describe()


  @FlatPackResponse(ApiDescription.class)
  public ApiDescription describeGet() throws IOException {
    FlatPack flatpack = providers.getContextResolver(FlatPack.class, MediaType.WILDCARD_TYPE)
        .getContext(FlatPack.class);
    ApiDescriber api = new ApiDescriber(flatpack, Arrays.asList(DemoResource.class.getMethods()));
    ApiDescription description = api.describe();
    description.setApiName("Demo");
    return description;
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.