# Disable default /v3/api-docs springdoc openapi endpoint in Swagger UI

**URL:** <https://community.smartbear.com/t/disable-default-v3-api-docs-springdoc-openapi-endpoint-in-swagger-ui/266>\
**Category:** Swagger OS\
**Tags:** api, migrated, swagger-oss, swagger-ui\
**Created:** [December 28, 2023, 10:08am UTC](https://community.smartbear.com/t/disable-default-v3-api-docs-springdoc-openapi-endpoint-in-swagger-ui/266 "2023-12-28T10:08:45Z")\
**Posts on this page:** 1\
**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:** [December 28, 2023, 10:08am UTC](https://community.smartbear.com/t/disable-default-v3-api-docs-springdoc-openapi-endpoint-in-swagger-ui/266/1 "2023-12-28T10:08:45Z")

</div>

> Originally posted by **spg** on December 28, 2023

I migrated from code-first approach to api design-first approach by writing an openapi specification file.

but whenever I hit swagger-ui/index.html, I can see it is loading previous specification file as default like /v3/api-docs. I want this url to load my **custom openapi-specification file (openapi-spec.yaml)**. how to achieve this in java spring boot?

I want to remove this default endpoint of /v3/api-docs
