Replace: generic parameter with path specific parameter

This commit is contained in:
Nicholas Wallace 2024-05-15 04:18:29 +00:00
parent 1430946e0e
commit e8797ce0c8
2 changed files with 27 additions and 25 deletions

View file

@ -1,12 +1,4 @@
components:
parameters:
libraryId:
name: id
in: path
description: The ID of the library.
required: true
schema:
$ref: '../objects/Library.yaml#/components/schemas/libraryId'
requestBody:
libraryName:
name: name
@ -133,7 +125,12 @@ paths:
$ref: '#/components/responses/library404'
/api/libraries/{id}:
parameters:
$ref: '#/components/parameters/libraryId'
- name: id
in: path
description: The ID of the library.
required: true
schema:
$ref: '../objects/Library.yaml#/components/schemas/libraryId'
get:
operationId: getLibraryById
summary: Get a single library by ID on server