Skip to content

API Documentation using Openapi #1967

Closed
@atulraj85

Description

@atulraj85

I am using zenstack with nextjs 15. I created a zmodel file and added the plugin to generate documentation for API.

plugin openapi { provider = '@zenstackhq/openapi' output = './openapi.yaml' title = 'My awesome API' version = '0.5.0' summary = 'Created with ZenStack' description = 'My awesome API created with ZenStack' prefix = '/api' }

Then I generated the file, it is about 1.4mb. I tried rendering that file to UI it is taking too much of RAM and crashes the site. Then I uploaded that file to online openapi viewer, it crashed that site too.

I am unaware of how to fix / use it. please help.

There are about 15 (mode) tables in my schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions