> This page is for Fern CLI.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 0.66.15

**`(feat):`** Split OpenAPI endpoints with multiple request bodies into multiple endpoints using `x-fern-sdk-method-name`.
For example, take the following OpenAPI spec:

```yml
paths:
  /documents/upload:
    post:
      summary: Upload document metadata (JSON) or document file
      operationId: uploadDocument
      requestBody:
        content:
          application/json:
            x-fern-sdk-method-name: uploadJsonDocument
            schema:
              type: object
              properties:
                title:
                  type: string
                author:
                  type: string
                tags:
                  type: array
                  items:
                    type: string
          application/pdf:
            x-fern-sdk-method-name: uploadPdfDocument
            schema:
              type: string
              format: binary
```

The OpenAPI spec becomes the following Fern Definition:

```yml
service:
  endpoints:
    uploadJsonDocument:
      method: POST
      path: /documents/upload
      request:
        body:
          properties:
            author: `optional<string>`
            tags: `optional<list<string>>`
            title: `optional<string>`
        content-type: application/json
        name: UploadDocumentRequest
        ...
    uploadPdfDocument:
      method: POST
      path: /documents/upload
      request:
        body: bytes
        content-type: application/pdf
      ...
```