Project

General

Profile

Revision 72937d27

ID72937d278e4542e0989b33b80d85333e98a9a992
Parent 695c2b14
Child 4670ff1d

Added by Andreas Kohlbecker over 2 years ago

fix #7779 fixing missing file extension in StaticSwaggerApiDoc controller

View differences:

cdmlib-remote-webapp/src/main/java/eu/etaxonomy/cdm/remote/staticSwagger/StaticSwaggerApiDoc.java
104 104
        if(groupConfig == null) {
105 105
            HttpStatusMessage.create("Unknown swagger group name.", 400).send(response);
106 106
        }
107
        InputStream staticDocStream = getClass().getClassLoader().getResourceAsStream(SWAGGER_STATIC + "/api-docs/" + groupConfig.name());
107
        InputStream staticDocStream = getClass().getClassLoader().getResourceAsStream(SWAGGER_STATIC + "/api-docs/" + groupConfig.name() + JSON);
108 108
        if(staticDocStream == null) {
109 109
            HttpStatusMessage.create("Static swagger api doc file for group '" + group + "' not found.", 500).send(response);
110 110
        } else {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)