[jbossts-issues] [JBoss JIRA] (JBTM-3123) LRA POST to "start" has Incorrect @ApiResponse annotation

Ondra Chaloupka (Jira) issues at jboss.org
Tue Mar 19 07:52:00 EDT 2019


    [ https://issues.jboss.org/browse/JBTM-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13710167#comment-13710167 ] 

Ondra Chaloupka commented on JBTM-3123:
---------------------------------------

[~lanceball] the swagger annotation was changed to reflect the operation. Thanks [~mstefank] for the fix and thanks [~lanceball] for the report.

> LRA POST to "start" has Incorrect @ApiResponse annotation
> ---------------------------------------------------------
>
>                 Key: JBTM-3123
>                 URL: https://issues.jboss.org/browse/JBTM-3123
>             Project: JBoss Transaction Manager
>          Issue Type: Task
>          Components: LRA
>    Affects Versions: 5.9.3.Final
>            Reporter: Lance Ball
>            Assignee: Martin Stefanko
>            Priority: Minor
>
> In {{java.io.narayana.lra.coordinator.api.Coordinator}} the {{@ApiResponse}} annotation [specifies a response code |https://github.com/jbosstm/narayana/blob/master/rts/lra/lra-coordinator/src/main/java/io/narayana/lra/coordinator/api/Coordinator.java#L227] of {{200}} for the "start" endpoint, however, [what is actually returned |https://github.com/jbosstm/narayana/blob/master/rts/lra/lra-coordinator/src/main/java/io/narayana/lra/coordinator/api/Coordinator.java#L281] is {{Response.Status.CREATED}} which is HTTP code {{201}}.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbossts-issues mailing list