[
https://issues.apache.org/jira/browse/ISIS-2034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16692407#comment-16692407
]
Brian Kalbfus commented on ISIS-2034:
-------------------------------------
OK, that did it. I see you are using cookie authentication now. The curl
command displayed isn't accurate if you have to include a cookie in the
process. Maybe modifying the api specification document
(/restful/swagger/private) will work better with Swagger-UI and generated
clients. You can add a security scheme like is described in
[https://swagger.io/docs/specification/authentication/cookie-authentication/]
.
Thanks!
Brian
> 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)