[
https://issues.apache.org/jira/browse/ISIS-2034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16692205#comment-16692205
]
Andi Huber commented on ISIS-2034:
----------------------------------
Response code 401 is 'unauthorized', so thats the problem here.
You might notice that I've added a link on the swagger-ui top bar labeled
'Direct API Link (Login)' which points to the restful servlet's base URL
'<context-path>/restful/'. You need to authorize once with Basic Auth
(sven:pass), to get access to the restful viewer. After that everything should
work.
> REST operations return empty response
> -------------------------------------
>
> Key: ISIS-2034
> URL: https://issues.apache.org/jira/browse/ISIS-2034
> Project: Isis
> Issue Type: Bug
> Components: Core: Viewer: RestfulObjects
> Affects Versions: 2.0.0-M2
> Environment: Windows 7
> Reporter: Brian Kalbfus
> Assignee: Andi Huber
> Priority: Minor
> Labels: not-an-issue
> Fix For: 2.0.0-M2
>
> Attachments: simpleappswaggerui.png
>
>
> to reproduce:
> # checkout HEAD of v2 branch
> # mvn clean install
> # cd to isis/example/application/simpleapp/webapp
> # set PROTOTYPING=true
> # mvn jetty:run
> # open web browser to localhost:8080/wicket, sign in as sven/pass
> # from prototyping menu, open swagger-ui
> # reload private spec
> # select simple - /service/simple.SimpleObjectMenu/actions/listAll/invoke
> # click "Try it out"
> expected: Response body should have some output - some json with metadata or
> something
> actual: Reponse body says "no content"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)