How to use the apicurio-design-studio.ApiDefinition function in apicurio-design-studio

To help you get started, we’ve selected a few apicurio-design-studio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Apicurio / apicurito / ui / src / app / app.component.ts View on Github external
public openEditor(content: any): void {
        this.apiDef = new ApiDefinition();
        this.apiDef.createdBy = 'user';
        this.apiDef.createdOn = new Date();
        this.apiDef.tags = [];
        this.apiDef.description = '';
        this.apiDef.id = 'api-1';
        this.apiDef.spec = content;
        this.apiDef.type = "OpenAPI30";
        if (content && content.swagger && content.swagger == "2.0") {
            this.apiDef.type = "OpenAPI20";
        }
    }
}

apicurio-design-studio

A web application to help design restful APIs.

Apache-2.0
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis

Popular apicurio-design-studio functions

Similar packages