Skip to content

Commit

Permalink
moved sectionId to parameter file
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLandbridge committed Aug 25, 2024
1 parent f12c2b0 commit 865ac6d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 40 deletions.
7 changes: 7 additions & 0 deletions parameters/LibrarySectionId.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- name: sectionId
description: The id of the library
in: path
schema:
type: number
example: 15
required: true
16 changes: 2 additions & 14 deletions paths/library/[sectionId]/get-and-delete-library-details.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ get:
operationId: get-library-details
parameters:
- name: sectionId
description: the Id of the library to query
in: path
schema:
type: number
example: 1000
required: true
- $ref: "../../../parameters/LibrarySectionId.yaml"
- name: includeDetails
description: |
Whether or not to include details for a section (types, filters, and sorts).
Expand Down Expand Up @@ -245,13 +239,7 @@ delete:
description: Delate a library using a specific section id
operationId: deleteLibrary
parameters:
- name: sectionId
description: the Id of the library to delete
in: path
schema:
type: number
example: 1000
required: true
- $ref: "../../../parameters/LibrarySectionId.yaml"
responses:
"200":
description: The library is deleted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ get:
This endpoint Refreshes all the Metadata of the library.
operationId: get-refresh-library-metadata
parameters:
- name: sectionId
description: the Id of the library to refresh
in: path
schema:
type: number
required: true
- $ref: "../../../../parameters/LibrarySectionId.yaml"
- name: force
description: Force the refresh even if the library is already being refreshed.
in: query
Expand Down
38 changes: 18 additions & 20 deletions plex-media-server-spec-dereferenced.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2599,13 +2599,12 @@ paths:
> **Note**: Filters and sorts are optional; without them, no filtering controls are rendered.
operationId: get-library-details
parameters:
- name: sectionId
description: the Id of the library to query
in: path
schema:
type: number
example: 1000
required: true
- - name: sectionId
description: The id of the library
in: path
schema:
type: number
required: true
- name: includeDetails
description: |
Whether or not to include details for a section (types, filters, and sorts).
Expand Down Expand Up @@ -2815,13 +2814,12 @@ paths:
description: Delate a library using a specific section id
operationId: deleteLibrary
parameters:
- name: sectionId
description: the Id of the library to delete
in: path
schema:
type: number
example: 1000
required: true
- - name: sectionId
description: The id of the library
in: path
schema:
type: number
required: true
responses:
'200':
description: The library is deleted
Expand Down Expand Up @@ -3311,12 +3309,12 @@ paths:
This endpoint Refreshes all the Metadata of the library.
operationId: get-refresh-library-metadata
parameters:
- name: sectionId
description: the Id of the library to refresh
in: path
schema:
type: number
required: true
- - name: sectionId
description: The id of the library
in: path
schema:
type: number
required: true
- name: force
description: Force the refresh even if the library is already being refreshed.
in: query
Expand Down

0 comments on commit 865ac6d

Please sign in to comment.