Was this helpful?
openapi: '3.0'
info: ...
# Expand all responses for every operation
x-expandAllResponses: true
paths:
/pets:
get:
summary: List pets
responses: [...]
# Opt out for a single operation
x-expandAllResponses: falseopenapi: '3.0'
info: ...
# Expand all model sections for every operation
x-expandAllModelSections: true
paths:
/pets:
post:
summary: Create a pet
requestBody: [...]
responses: [...]
# Opt out for a single operation
x-expandAllModelSections: falseopenapi: '3.0.3'
info: ...
# Enable proxy for all operations
x-enable-proxy: true
paths:
/health:
get:
summary: Health check
# Opt out for a single operation
x-enable-proxy: false
responses:
'200':
description: OKopenapi: '3.0'
info: ...
tags: [...]
paths:
/example:
get:
summary: Example summary
description: Example description
operationId: examplePath
responses: [...]
parameters: [...]
x-codeSamples:
- lang: 'cURL'
label: 'CLI'
source: |
curl -L \
-H 'Authorization: Bearer <token>' \
'https://api.gitbook.com/v1/user'openapi: '3.0'
info: ...
components:
schemas:
project_status:
type: string
enum:
- LIVE
- PENDING
- REJECTED
x-enumDescriptions:
LIVE: The project is live.
PENDING: The project is pending approval.
REJECTED: The project was rejected.openapi: '3.0'
info: ...
tags: [...]
paths:
/example:
get:
summary: Example summary
description: Example description
operationId: examplePath
responses: [...]
parameters: [...]
x-internal: trueopenapi: '3.0'
info: ...
tags: [...]
paths:
/example:
get:
summary: Example summary
description: Example description
operationId: examplePath
x-stability: experimentalopenapi: '3.0'
info: ...
tags: [...]
paths:
/example:
get:
summary: Example summary
description: Example description
operationId: examplePath
responses: [...]
parameters: [...]
deprecated: trueopenapi: '3.0'
info: ...
tags: [...]
paths:
/example:
get:
summary: Example summary
description: Example description
operationId: examplePath
responses: [...]
parameters: [...]
deprecated: true
x-deprecated-sunset: 2030-12-05