mirror of
https://github.com/LukeHagar/speakeasy-playground.git
synced 2025-12-07 20:57:47 +00:00
add spec with default parameter
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.idea
|
||||||
29
openapi.yaml
Normal file
29
openapi.yaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
openapi: 3.0.0
|
||||||
|
info:
|
||||||
|
title: Example
|
||||||
|
version: '1'
|
||||||
|
description: ''
|
||||||
|
servers:
|
||||||
|
- url: https://example.com
|
||||||
|
paths:
|
||||||
|
"/example":
|
||||||
|
get:
|
||||||
|
operationId: Example
|
||||||
|
parameters:
|
||||||
|
- $ref: "#/components/parameters/ResultsPerPageQueryParam"
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: example
|
||||||
|
components:
|
||||||
|
parameters:
|
||||||
|
ResultsPerPageQueryParam:
|
||||||
|
description: The number of results to return per page (max 100)
|
||||||
|
in: query
|
||||||
|
name: results_per_page
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
maximum: 100
|
||||||
|
default: 25
|
||||||
|
responses: {}
|
||||||
Reference in New Issue
Block a user