You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Petri Tuomola (Jira)" <ji...@apache.org> on 2020/07/09 11:48:00 UTC

[jira] [Assigned] (FINERACT-1083) Swagger UI resource location to be version independent

     [ https://issues.apache.org/jira/browse/FINERACT-1083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Petri Tuomola reassigned FINERACT-1083:
---------------------------------------

    Assignee: Petri Tuomola

> Swagger UI resource location to be version independent
> ------------------------------------------------------
>
>                 Key: FINERACT-1083
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1083
>             Project: Apache Fineract
>          Issue Type: Sub-task
>            Reporter: Petri Tuomola
>            Assignee: Petri Tuomola
>            Priority: Major
>
>  Swagger UI application is now included through the runtime dependency in the Gradle file (dependency on 'org.webjars.npm:swagger-ui-dist'), and Tomcat is then instructed to route requests for /swagger-ui to the WebJar (see code in org.apache.fineract.infrastructure.core.boot.WebFrontEndConfiguration). 
> The only problem is that the code in org.apache.fineract.infrastructure.core.boot.WebFrontEndConfiguration refers to the WebJAR with a specific version number. When we upgrade the dependency we need to also change the source code to point to the right version. A better solution would be to make this version agnostic - either by using the webjars-locator ([https://mvnrepository.com/artifact/org.webjars/webjars-locator) |https://mvnrepository.com/artifact/org.webjars/webjars-locator]or by simply writing some code to find swagger.json from classpath and using the found location to determine the right resource location to use. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)