---
description:
  Turn your GraphQL schema into REST API with Sofa. Easy installation and usage. Get started now
  with `@graphql-yoga/plugin-sofa`.
---

# Generate REST API using SOFA

Sofa takes your GraphQL Schema, looks for available queries, mutations and subscriptions and turns
all of that into REST API.

## Installation

```sh npm2yarn
npm i @graphql-yoga/plugin-sofa
```

## Usage

```yaml
plugins:
  - sofa:
      basePath: /rest
      swaggerUIEndpoint: /swagger
      info:
        title: 'My REST API'
        version: '1.0.0'
```
