Skip to content

Same endpoint for POST and GET method without the duplicate key error? #2698

@Nikola-Milovic

Description

@Nikola-Milovic

Hello everyone, I am kinda confused as to why this isn't a thing, or I am I doing this wrong entirely?

I have a user profile path api/user/profile with a GET api/user/profile/{userID} and POST method on the same path. Why isn't that supported, seems like the usual? I mean both should point to the same profile and only differ whether it's a post or a get method. Is this an issue when using a single YAML file or would the issue persist if I split them up into separate files?

(Using swagger)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions