This repository was archived by the owner on May 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
sormas-rest/src/main/java/de/symeda/sormas/rest/external Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import javax .ws .rs .ApplicationPath ;
55import javax .ws .rs .core .Context ;
66
7- import io .swagger .v3 .jaxrs2 .Reader ;
8- import io .swagger .v3 .jaxrs2 .integration .JaxrsOpenApiContextBuilder ;
9- import io .swagger .v3 .oas .integration .OpenApiConfigurationException ;
107import org .glassfish .jersey .jackson .JacksonFeature ;
118import org .glassfish .jersey .server .ResourceConfig ;
129import org .glassfish .jersey .server .filter .RolesAllowedDynamicFeature ;
2522 * Resource configuration used only for external resources i.e. for external systems which communicate with SORMAS
2623 * Separate from the other resource configuration in order to limit create the swagger documentation only for resources in this package
2724 */
28- @ ApplicationPath ("/" )
25+ @ ApplicationPath ("/visits-external " )
2926public class ExternalRestResourceConfig extends ResourceConfig {
3027
3128 @ Context
@@ -50,8 +47,7 @@ public ExternalRestResourceConfig() {
5047 .contact (new Contact ().url ("https://gitter.im/SORMAS-Project/dev-support" ))
5148 .license (new License ().name ("GNU General Public License" ).url ("https://www.gnu.org/licenses/" ));
5249
53- Reader reader = new Reader (new OpenAPI ().info (info ));
54- OpenAPI openAPI = reader .read (ExternalVisitsResource .class );
50+ OpenAPI openAPI = new OpenAPI ().info (info );
5551 SwaggerConfiguration openAPIConfiguration = new SwaggerConfiguration ().prettyPrint (true )
5652 .openAPI (openAPI )
5753 .resourceClasses (Sets .newHashSet (ExternalVisitsResource .class .getSimpleName ()));
Original file line number Diff line number Diff line change 2525import io .swagger .v3 .oas .annotations .parameters .RequestBody ;
2626import io .swagger .v3 .oas .annotations .responses .ApiResponse ;
2727
28- @ Path ("/visits-external " )
28+ @ Path ("/" )
2929@ Produces (MediaType .APPLICATION_JSON + "; charset=UTF-8" )
3030@ Consumes (MediaType .APPLICATION_JSON + "; charset=UTF-8" )
3131@ RolesAllowed ("REST_EXTERNAL_VISITS_USER" )
You can’t perform that action at this time.
0 commit comments