partitioning endpoints

This commit is contained in:
Luke Hagar
2023-04-12 10:39:38 -05:00
parent ce18a42471
commit 4232d35d6f
37 changed files with 46 additions and 47 deletions

View File

@@ -1,5 +1,9 @@
{ {
"yaml.schemas": { "yaml.schemas": {
"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json": "file:///Users/luke.hagar/Documents/GitHub/plex-api-spec/paths/root.yaml" "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json": [
"file:///Users/luke.hagar/Documents/GitHub/plex-api-spec/paths/root.yaml",
"file:///c%3A/Users/Luke/Documents/GitHub/plex-api-spec/referenced/plex-api-spec.yaml",
"file:///c%3A/Users/Luke/Documents/GitHub/plex-api-spec/referenced/paths/resources.yaml"
]
} }
} }

View File

@@ -4,15 +4,6 @@ get:
summary: Get Available Clients summary: Get Available Clients
description: Get Available Clients description: Get Available Clients
operationId: getAvailableClients operationId: getAvailableClients
parameters:
- $ref: "../parameters/X-Plex-Client-Identifier.yaml"
- $ref: "../parameters/X-Plex-Device-Name.yaml"
- $ref: "../parameters/X-Plex-Device.yaml"
- $ref: "../parameters/X-Plex-Platform-Version.yaml"
- $ref: "../parameters/X-Plex-Platform.yaml"
- $ref: "../parameters/X-Plex-Product.yaml"
- $ref: "../parameters/X-Plex-Provides.yaml"
- $ref: "../parameters/X-Plex-Version.yaml"
responses: responses:
"200": "200":
description: Available Clients description: Available Clients

View File

@@ -7,7 +7,7 @@ get:
parameters: parameters:
- name: url - name: url
description: This is the path to the local file, must be prefixed by `file://` description: This is the path to the local file, must be prefixed by `file://`
in: path in: query
schema: schema:
type: string type: string
example: file://C:\Image.png&type=13 example: file://C:\Image.png&type=13

View File

@@ -9,9 +9,13 @@ info:
name: Luke Hagar name: Luke Hagar
email: Lukeslakemail@gmail.com email: Lukeslakemail@gmail.com
url: "https://www.LukeHagar.com" url: "https://www.LukeHagar.com"
license:
name: MIT
url: https://opensource.org/licenses/MIT
servers: servers:
- url: "{Protocol}://{Local IP}:{Port}" - url: '{Protocol}://{Local IP}:{Port}'
variables: variables:
Protocol: Protocol:
enum: enum:
@@ -38,79 +42,79 @@ components:
paths: paths:
/clients: /clients:
$ref: "./paths/clients.yaml" $ref: "./paths/pms/clients.yaml"
/: /:
$ref: "./paths/root.yaml" $ref: "./paths/pms/root.yaml"
/activities: /activities:
$ref: "./paths/activities.yaml" $ref: "./paths/pms/activities.yaml"
/activities/{activityUUID}: /activities/{activityUUID}:
$ref: "./paths/activities-cancel.yaml" $ref: "./paths/pms/activities-cancel.yaml"
/updater/status: /updater/status:
$ref: "./paths/updater-status.yaml" $ref: "./paths/pms/updater-status.yaml"
/updater/check: /updater/check:
$ref: "./paths/updater-check.yaml" $ref: "./paths/pms/updater-check.yaml"
/updater/apply: /updater/apply:
$ref: "./paths/updater-apply.yaml" $ref: "./paths/pms/updater-apply.yaml"
/butler: /butler:
$ref: "./paths/butler.yaml" $ref: "./paths/pms/butler.yaml"
/butler/{taskName}: /butler/{taskName}:
$ref: "./paths/butler-task.yaml" $ref: "./paths/pms/butler-task.yaml"
/log: /log:
$ref: "./paths/log.yaml" $ref: "./paths/pms/log.yaml"
/log/networked: /log/networked:
$ref: "./paths/log-networked.yaml" $ref: "./paths/pms/log-networked.yaml"
/security/token: /security/token:
$ref: "./paths/security-token.yaml" $ref: "./paths/pms/security-token.yaml"
/security/resources: /security/resources:
$ref: "./paths/security-resources.yaml" $ref: "./paths/pms/security-resources.yaml"
/library/sections/{sectionId}/all: /library/sections/{sectionId}/all:
$ref: "./paths/library-content-all.yaml" $ref: "./paths/pms/library-content-all.yaml"
/library/sections/{sectionId}/refresh: /library/sections/{sectionId}/refresh:
$ref: "./paths/library-refresh.yaml" $ref: "./paths/pms/library-refresh.yaml"
/library/sections/{sectionId}/latest: /library/sections/{sectionId}/latest:
$ref: "./paths/library-content-latest.yaml" $ref: "./paths/pms/library-content-latest.yaml"
/library/sections/{sectionId}/common: /library/sections/{sectionId}/common:
$ref: "./paths/library-content-common.yaml" $ref: "./paths/pms/library-content-common.yaml"
/library/sections/{sectionId}: /library/sections/{sectionId}:
$ref: "./paths/library-details.yaml" $ref: "./paths/pms/library-details.yaml"
/library/sections: /library/sections:
$ref: "./paths/all-libraries.yaml" $ref: "./paths/pms/all-libraries.yaml"
/library/hashes: /library/hashes:
$ref: "./paths/library-hashes.yaml" $ref: "./paths/pms/library-hashes.yaml"
/library/onDeck: /library/onDeck:
$ref: "./paths/library-ondeck.yaml" $ref: "./paths/pms/library-ondeck.yaml"
/hubs: /hubs:
$ref: "./paths/hubs.yaml" $ref: "./paths/pms/hubs.yaml"
/hubs/sections/{sectionId}: /hubs/sections/{sectionId}:
$ref: "./paths/hubs-section.yaml" $ref: "./paths/pms/hubs-section.yaml"
/playlists/all: /playlists/all:
$ref: "./paths/all-playlists.yaml" $ref: "./paths/pms/all-playlists.yaml"
/playlists: /playlists:
$ref: "./paths/playlists.yaml" $ref: "./paths/pms/playlists.yaml"
/playlists/{playlistID}: /playlists/{playlistID}:
$ref: "./paths/playlist-id.yaml" $ref: "./paths/pms/playlist-id.yaml"
/playlists/{playlistID}/items: /playlists/{playlistID}/items:
$ref: "./paths/playlist-contents.yaml" $ref: "./paths/pms/playlist-contents.yaml"
/playlists/upload: /playlists/upload:
$ref: "./paths/playlist-upload.yaml" $ref: "./paths/pms/playlist-upload.yaml"
/hubs/search: /hubs/search:
$ref: "./paths/hubs-search.yaml" $ref: "./paths/pms/hubs-search.yaml"
/hubs/search/voice: /hubs/search/voice:
$ref: "./paths/hubs-search-voice.yaml" $ref: "./paths/pms/hubs-search-voice.yaml"
/user: /user:
servers: servers:
- url: https://plex.tv/api/v2 - url: https://plex.tv/api/v2
$ref: "./paths/user.yaml" $ref: "./paths/plex.tv/user.yaml"
/resources: /resources:
servers: servers:
- url: https://plex.tv/api/v2 - url: https://plex.tv/api/v2
$ref: "./paths/resources.yaml" $ref: "./paths/plex.tv/resources.yaml"
/status/sessions: /status/sessions:
$ref: "./paths/sessions.yaml" $ref: "./paths/pms/sessions.yaml"
/status/sessions/history/all: /status/sessions/history/all:
$ref: "./paths/session-history.yaml" $ref: "./paths/pms/session-history.yaml"
/:/prefs: /:/prefs:
$ref: "./paths/server-preferences.yaml" $ref: "./paths/pms/server-preferences.yaml"
tags: tags:
- name: Activities - name: Activities