Skip to content

fix when multiple actions have the same url_path#800

Open
shipengtaov wants to merge 1 commit intoaxnsan12:masterfrom
shipengtaov:fix-multiple-actions-same-url_name
Open

fix when multiple actions have the same url_path#800
shipengtaov wants to merge 1 commit intoaxnsan12:masterfrom
shipengtaov:fix-multiple-actions-same-url_name

Conversation

@shipengtaov
Copy link

this pull request fix case when multiple actions having the same url_path, while not using action.mapping

@action(detail=False, methods=['get'], url_path='test')
def action_get(self, request):
    pass

@action(detail=False, methods=['post'], url_path='test')
def action_post(self, request):
    pass

In this case, the swagger will only show GET /test, not including POST /test

@JoelLefkowitz JoelLefkowitz added 1.23.x Release target in 1.23.x bug Bug report labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.23.x Release target in 1.23.x bug Bug report

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments