# Swagger UI not showing operations with same Path but different HTTP method

**URL:** <https://community.smartbear.com/t/swagger-ui-not-showing-operations-with-same-path-but-different-http-method/231>\
**Category:** Swagger OS\
**Tags:** swagger, api, migrated, swagger-oss, swagger-ui, swagger-ui-express\
**Created:** [July 7, 2020, 8:29am UTC](https://community.smartbear.com/t/swagger-ui-not-showing-operations-with-same-path-but-different-http-method/231 "2020-07-07T08:29:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [July 7, 2020, 8:29am UTC](https://community.smartbear.com/t/swagger-ui-not-showing-operations-with-same-path-but-different-http-method/231/1 "2020-07-07T08:29:20Z")

</div>

> Originally posted by **RichardHobbs** on July 07, 2020

For example I have 2 API operations:

GET v1/people/{id}

POST v1/people/{id}

Only one of these operations is shown in my Swagger UI API docs but I want both of them displayed. I have many examples where this is the case. In the Swagger documentation it states:

“_Swagger defines a unique operation as a combination of a path and an HTTP method._”

This would make me think what I want to do is possible as they are uniquely identified by the HTTP method.

If I change the path parameter for one in my swagger.yaml file they will both show. eg:

GET v1/people/{personid}

POST v1/people/{id}

But I would rather keep them all standard otherwise my API docs will appear messy.

I am using swagger-ui-express 4.1.4.

Please see StackOverflow post with code: [https://stackoverflow.com/questions/62769866/swagger-ui-not-showing-operations-with-same-path-but-different-http-method](https://stackoverflow.com/questions/62769866/swagger-ui-not-showing-operations-with-same-path-but-different-http-method)

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [July 20, 2020, 8:22am UTC](https://community.smartbear.com/t/swagger-ui-not-showing-operations-with-same-path-but-different-http-method/231/2 "2020-07-20T08:22:40Z")

</div>

> Originally posted by **sonya\_m** on July 20, 2020

Hi RichardHobbs ! It looks like you already got an answer to your question on [Stack Overflow](https://stackoverflow.com/questions/62769866/swagger-ui-not-showing-operations-with-same-path-but-different-http-method)!

BTW, swagger-ui-express isn’t SmartBear’s project. It’s better to ask questions about this tool in their own community.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2026, 5:13pm UTC](https://community.smartbear.com/t/swagger-ui-not-showing-operations-with-same-path-but-different-http-method/231/3 "2026-10-07T17:13:45Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
