Enhances API documentation and enables Swagger UI
Adds detailed `@ApiBody` schemas to several endpoints within `PageController` and `SpaceController`, including methods for creating and updating pages, spaces, and managing temporary access tokens. This provides clear, machine-readable descriptions of expected request bodies for API consumers. Enables the Swagger UI in the main application bootstrap, allowing for interactive exploration and testing of the API endpoints directly through the browser.
This commit is contained in:
1 parent
bb992167d2
commit
4ec9bf1acf
3 files changed
+171
-1
No files matched your search
+1
-1
@@ -19,7 +19,7 @@ async function bootstrap() {
|
||||
})
|
||||
.build();
|
||||
const options: SwaggerCustomOptions = {
|
||||
ui: false,
|
||||
ui: true,
|
||||
raw: ['yaml'],
|
||||
}
|
||||
const documentFactory = () => SwaggerModule.createDocument(app, config);
|
||||
|
||||
Reference in new issue
Block a user