---
lang: en
title: 'API docs: rest.restserver._setupopenapispecendpoints'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.restserver._setupopenapispecendpoints.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestServer](./rest.restserver.md) &gt; [\_setupOpenApiSpecEndpoints](./rest.restserver._setupopenapispecendpoints.md)

## RestServer.\_setupOpenApiSpecEndpoints() method

Mount /openapi.json, /openapi.yaml for specs and /swagger-ui, /explorer to redirect to externally hosted API explorer

<b>Signature:</b>

```typescript
protected _setupOpenApiSpecEndpoints(): void;
```
<b>Returns:</b>

`void`


