Skip to content

HTTP POST method naming based on isTargetCollection #211

Closed
@yuranos

Description

@yuranos

I am trying to understand why NamingHelper is making a decision about POST method name based on whether the tail is singular or plural.
It's very easy to fix, so I'll gladly do it if it's Ok.
As a result of this issue what we have is:

    @RequestMapping(value = "/{bookingRef}/ogoneIframe", method = RequestMethod.POST)
    public ResponseEntity<OgoneIframeResponseDto> updateOgoneIframe(...)

even though POST should normally be used for creation.
I would understand it if the decision would have been made based on whether the id is present in the url, but it's not the case.

@stojsavljevic , can you take a look and come up with a suggestion?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions