mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(core): Export OpenAPI spec for external tools (#5294)
The generated spec is available at /api/v1/openapi.yml
This commit is contained in:
committed by
GitHub
parent
4bd9ed675e
commit
5cb7e5007d
@@ -49,6 +49,10 @@ async function createApiRouter(
|
||||
);
|
||||
}
|
||||
|
||||
apiController.get(`/${publicApiEndpoint}/${version}/openapi.yml`, (req, res) => {
|
||||
res.sendFile(openApiSpecPath);
|
||||
});
|
||||
|
||||
apiController.use(
|
||||
`/${publicApiEndpoint}/${version}`,
|
||||
express.json(),
|
||||
|
||||
Reference in New Issue
Block a user