Project

General

Profile

« Previous | Next » 

Revision 7a3e2b35

Added by Andreas Kohlbecker about 8 years ago

#5657 futher fixes for the static swagger doc

View differences:

cdmlib-remote-webapp/src/test/java/eu/etaxonomy/cdm/remote/SwaggerStaticIT.java
69 69
        for(SwaggerGroupsConfig group : SwaggerGroupsConfig.values()) {
70 70
            logger.info(group.groupName());
71 71
            String response =  httpGetJson(swagger2Endpoint, "group=" + group.groupName());
72
            response = response.replaceAll(",\"host\":\"([^\"]*)", ",\"host\":\"" + StaticSwaggerApiDoc.HOST);
73
            response = response.replaceAll(",\"basePath\":\"([^\"]*)", ",\"basePath\":\"" + StaticSwaggerApiDoc.BASE_PATH);
72 74
            try {
73 75
                FileUtils.write(new File(staticApiDocFolder + group.name()), response);
74 76
            } catch (IOException e) {

Also available in: Unified diff