Page Contents

Home > @loopback/rest > OpenApiSpecOptions > endpointMapping

OpenApiSpecOptions.endpointMapping property

Mapping of urls to spec forms, by default:
{
‘/openapi.json’: {version: ‘3.0.0’, format: ‘json’},
‘/openapi.yaml’: {version: ‘3.0.0’, format: ‘yaml’},
}

Signature:

endpointMapping?: {
        [key: string]: OpenApiSpecForm;
    };