Belanchuk / directus-extension-rapidocus

View any OpenAPI Specification in your Directus and customize the appearance.
MIT License
2 stars 0 forks source link

Customer endpoints #1

Open ludi81 opened 1 month ago

ludi81 commented 1 month ago

Hi,

I created multiple custom endpoints. How can I add my custom endpoints to the list of the services?

Thanks a lot Ludi

Belanchuk commented 1 month ago

Hi! This is not possible out of the box. Generating an OpenAPI Specification is only possible based on Collections and automatically generated endpoints. But it is possible to create a custom endpoint that will return a json or yaml in the format https://spec.openapis.org/oas/v3.1.0 Currently, Rapidocus is only a bridge between Rapido and Directus, it does not provide any additional functionality or endpoints. Your question gives a good idea for another extension of Directus, which provides additional functionality for generating OpenAPI Specifications not only based on Collections, but also including custom endpoints. Make it!