---
lang: en
title: 'API docs: rest.restbindings.api_spec'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.restbindings.api_spec.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestBindings](./rest.restbindings.md) &gt; [API\_SPEC](./rest.restbindings.api_spec.md)

## RestBindings.API\_SPEC variable

Binding key for setting and injecting an OpenAPI spec

<b>Signature:</b>

```typescript
API_SPEC: BindingKey<OpenApiSpec>
```

