[GH-ISSUE #4465] Allow adding selfmade api endpoints to OpenAPI documentaion plugin. #9943

Closed
opened 2026-04-13 05:46:48 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @FalconiZzare on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/4465

Is this suited for github?

  • Yes, this is suited for github

Currently the OpenAPI plugin only shows better auth and other plugin managed endpoints. This requires the user to jump between OpenAPI and Postman to test selfmade endpoints that are outside of Better Auth and handled manually via controllers, and routes and etc.

Describe the solution you'd like

I would like to be able to pass a self wrote metadata in json or any other format to the OpenAPI plugin which will then include the selfmade endpoints extracted from the metadata to the OpenAPI documentation under a seperate section called "Custom" or something.

Describe alternatives you've considered

None. But either being able to pass a metadata or any other efficient way to reference self/custom made endpoints to OpenAPI documentation will really help.

Additional context

No response

Originally created by @FalconiZzare on GitHub (Sep 5, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/4465 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Currently the OpenAPI plugin only shows better auth and other plugin managed endpoints. This requires the user to jump between OpenAPI and Postman to test selfmade endpoints that are outside of Better Auth and handled manually via controllers, and routes and etc. ### Describe the solution you'd like I would like to be able to pass a self wrote metadata in json or any other format to the OpenAPI plugin which will then include the selfmade endpoints extracted from the metadata to the OpenAPI documentation under a seperate section called "Custom" or something. ### Describe alternatives you've considered None. But either being able to pass a metadata or any other efficient way to reference self/custom made endpoints to OpenAPI documentation will really help. ### Additional context _No response_
GiteaMirror added the enhancementlocked labels 2026-04-13 05:46:48 -05:00
Author
Owner

@Kinfe123 commented on GitHub (Sep 5, 2025):

if you are using scalar, this could be a good options for you - https://www.better-auth.com/docs/plugins/open-api#using-scalar-with-multiple-sources

<!-- gh-comment-id:3259433728 --> @Kinfe123 commented on GitHub (Sep 5, 2025): if you are using scalar, this could be a good options for you - https://www.better-auth.com/docs/plugins/open-api#using-scalar-with-multiple-sources
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9943