add spec with default parameter

This commit is contained in:
Mike Lueders
2024-02-29 14:28:38 -06:00
commit e8d67cbb9c
2 changed files with 30 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea

29
openapi.yaml Normal file
View 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: {}