mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-10 04:20:52 +00:00
added country endpoint by library endpoint
This commit is contained in:
84
src/paths/library/[sectionKey]/get-library-countries.yaml
Normal file
84
src/paths/library/[sectionKey]/get-library-countries.yaml
Normal file
@@ -0,0 +1,84 @@
|
||||
get:
|
||||
tags:
|
||||
- Library
|
||||
summary: Search Library
|
||||
operationId: get-countries-library
|
||||
description: |
|
||||
Retrieves a list of all the countries that are found for the media in this library.
|
||||
responses:
|
||||
"200":
|
||||
description: Successful response containing media container data.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
MediaContainer:
|
||||
allOf:
|
||||
- $ref: "../../../models/MediaContainer.yaml"
|
||||
- type: object
|
||||
required:
|
||||
- size
|
||||
- allowSync
|
||||
- art
|
||||
- content
|
||||
- identifier
|
||||
- mediaTagPrefix
|
||||
- mediaTagVersion
|
||||
- nocache
|
||||
- thumb
|
||||
- title1
|
||||
- title2
|
||||
- viewGroup
|
||||
properties:
|
||||
art:
|
||||
type: string
|
||||
example: "/:/resources/show-fanart.jpg"
|
||||
content:
|
||||
type: string
|
||||
example: "secondary"
|
||||
mediaTagPrefix:
|
||||
type: string
|
||||
example: "/system/bundle/media/flags/"
|
||||
mediaTagVersion:
|
||||
type: integer
|
||||
example: 1734362201
|
||||
nocache:
|
||||
type: boolean
|
||||
example: true
|
||||
thumb:
|
||||
type: string
|
||||
example: "/:/resources/show.png"
|
||||
title1:
|
||||
type: string
|
||||
example: "TV Series"
|
||||
title2:
|
||||
type: string
|
||||
example: "By Country"
|
||||
viewGroup:
|
||||
type: string
|
||||
example: "secondary"
|
||||
Directory:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
required:
|
||||
- fastKey
|
||||
- key
|
||||
- title
|
||||
properties:
|
||||
fastKey:
|
||||
type: string
|
||||
example: "/library/sections/2/all?country=15491"
|
||||
key:
|
||||
type: string
|
||||
example: "15491"
|
||||
title:
|
||||
type: string
|
||||
example: "Japan"
|
||||
"400":
|
||||
$ref: "../../../responses/400.yaml"
|
||||
"401":
|
||||
$ref: "../../../responses/401.yaml"
|
||||
"404":
|
||||
$ref: "../../../responses/404-html.yaml"
|
||||
Reference in New Issue
Block a user