[ 
https://issues.apache.org/jira/browse/ISIS-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16248942#comment-16248942
 ] 

Andi Huber edited comment on ISIS-1775 at 11/12/17 6:26 PM:
------------------------------------------------------------

Static HTML as taken from the 1.15.1 Hello World archetype needs a fix as well.

In webapp/swagger-ui/index.html changing to relative paths works for me ...

{code:xml}
<select ...>
   <option id="private" label="private" 
value="../../restful/swagger/private">private</option>
   <option id="public" label="public" 
value="../../restful/swagger/public">public</option>
   <option id="prototyping" label="prototyping" 
value="../../restful/swagger/prototyping">prototyping</option>
</select>
{code}



was (Author: hobrom):
Static HTML as taken from the 1.15.1 Hello World archetype needs a fix as well.

In webapp/swagger-ui/index.html changing to relative paths works for me ...

{code:xml}
<select ...>
   <option id="private" label="private" 
value="../../restful/swagger/private">private</option>
   <option id="public" label="public" 
value="../../restful/swagger/public">public</option>
   <option id="prototyping" label="prototyping" 
value="../../restful/swagger/prototyping">prototyping</option></select>
{code}


> Auto-Configure SwaggerServiceDefault if Web-App has a Context-Path
> ------------------------------------------------------------------
>
>                 Key: ISIS-1775
>                 URL: https://issues.apache.org/jira/browse/ISIS-1775
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.15.1
>            Reporter: Andi Huber
>            Assignee: Andi Huber
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> Let's say we deploy a web-app that has e.g. context path '/simple'.
> Then we would need to configure the IsisConfiguration property 
> 'isis.services.swagger.restfulBasePath' (default = '/restful') to 
> '/simple/restful', in order for the swagger-ui to work properly.
> We can instead implement o.a.i.c.m.services.SwaggerServiceDefault such that 
> it automatically prefixes the swaggerBasePath with the app's context path (if 
> present).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to