Skip to content

Clarification required for templated paths with same hierarchy but different templated names and methods #2530

Open
@Jmcleodfoss

Description

@Jmcleodfoss

This is alluded to by @kapone89 in Issue 2015 but I believe it warrants an issue of its own to get clarification.

The spec states clearly that "Templated paths with the same hierarchy but different templated names MUST NOT exist as they are identical."

But what it there are there are two templated paths which differ by templated names and also HTTP methods? There is no ambiguity between them, as long as there is only a single path for each method, so I can't see any justification for disallowing this; the example provided by in Issue 2015 is:

GET /pets/{petId}
DELETE /pets/{name}

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationrequests to clarify, but not change, part of the specrequest matchingMatching requests to URL templates, media types, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions