UNPKG

@protocolnebula/ts-openapi-generator

Version:

Build API and models from Swagger/OpenAPI to use in any project type

19 lines (13 loc) 319 B
import { ModelModel } from './model.model'; export type Verbs = 'GET' | 'POST' | 'PATCH' | 'DELETE'; export class ApiURLModel { url: string; type: Verbs; getModel?: ModelModel; bodyModel?: ModelModel; returnModel?: ModelModel; returnIsArray?: boolean; toString(): string { return this.url; } }