mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Mark optional parameters in the Swagger API
This commit is contained in:
parent
932c9016d7
commit
bd9fc7d30e
3 changed files with 15 additions and 2 deletions
|
|
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
- Map settings moved to the map itself and are available in the top right corner of the map under the gear icon.
|
- Map settings moved to the map itself and are available in the top right corner of the map under the gear icon.
|
||||||
|
|
||||||
|
|
||||||
## [0.12.1] — 2024-08-25
|
## [0.12.1] — 2024-08-25
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ describe 'Points API', type: :request do
|
||||||
description: 'Start date (i.e. 2024-02-03T13:00:03Z or 2024-02-03)'
|
description: 'Start date (i.e. 2024-02-03T13:00:03Z or 2024-02-03)'
|
||||||
parameter name: :end_at, in: :query, type: :string,
|
parameter name: :end_at, in: :query, type: :string,
|
||||||
description: 'End date (i.e. 2024-02-03T13:00:03Z or 2024-02-03)'
|
description: 'End date (i.e. 2024-02-03T13:00:03Z or 2024-02-03)'
|
||||||
parameter name: :page, in: :query, type: :integer, description: 'Page number'
|
parameter name: :page, in: :query, type: :integer, required: false, description: 'Page number'
|
||||||
parameter name: :per_page, in: :query, type: :integer, description: 'Number of points per page'
|
parameter name: :per_page, in: :query, type: :integer, required: false, description: 'Number of points per page'
|
||||||
response '200', 'points found' do
|
response '200', 'points found' do
|
||||||
schema type: :array,
|
schema type: :array,
|
||||||
items: {
|
items: {
|
||||||
|
|
|
||||||
|
|
@ -326,6 +326,18 @@ paths:
|
||||||
description: End date (i.e. 2024-02-03T13:00:03Z or 2024-02-03)
|
description: End date (i.e. 2024-02-03T13:00:03Z or 2024-02-03)
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: page
|
||||||
|
in: query
|
||||||
|
required: false
|
||||||
|
description: Page number
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
- name: per_page
|
||||||
|
in: query
|
||||||
|
required: false
|
||||||
|
description: Number of points per page
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: points found
|
description: points found
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue