Package com.wordnik.swagger.reader

Examples of com.wordnik.swagger.reader.ClassReader


    }

    private List<ApiListing> gatherListings() {
        Map<String, Object> endpoints = context.getBeansWithAnnotation(Path.class);

        ClassReader classReader = ClassReaders.reader().get();

        List<ApiListing> listings = new ArrayList<>();
        for (Object endpoint : endpoints.values()) {
            Option<ApiListing> listing = classReader.read(getApiUrl(), endpoint.getClass(), swaggerConfig);
            if (listing.nonEmpty()) {
                listings.add(listing.get());
            }
        }
View Full Code Here


    private ApiListing getDocFromClass(Class c, SwaggerConfig swaggerConfig, String basePath) throws Exception {
        Api resource = (Api) c.getAnnotation(Api.class);

        if (resource == null) return null;
        ClassReader reader = getApiReader();
        Option<ApiListing> apiListing = reader.read(basePath, c, swaggerConfig);

        if (None.canEqual(apiListing)) return null;

        return specFilter.filter(apiListing.get(), FilterFactory.filter(),
                                 Map$.MODULE$.<String, scala.collection.immutable.List<String>>empty(),
View Full Code Here

TOP

Related Classes of com.wordnik.swagger.reader.ClassReader

Copyright © 2018 www.massapicom. 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.