mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-10 20:47:48 +00:00
Added Geoip endpoint
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
get:
|
||||
get:
|
||||
servers:
|
||||
- url: https://plex.tv/api/v2
|
||||
- url: 'https://plex.tv/api/v2'
|
||||
tags:
|
||||
- Plex
|
||||
summary: Get Companions Data
|
||||
@@ -43,6 +43,6 @@
|
||||
type: string
|
||||
description: The plex authtoken used to identify with
|
||||
'400':
|
||||
$ref: '../../responses/400.yaml'
|
||||
$ref: ../../responses/400.yaml
|
||||
'401':
|
||||
$ref: '../../responses/401.yaml'
|
||||
$ref: ../../responses/401.yaml
|
||||
|
||||
20
paths/geoip/geoip.yaml
Normal file
20
paths/geoip/geoip.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
get:
|
||||
servers:
|
||||
- url: 'https://plex.tv/api/v2'
|
||||
security: [] # No security required
|
||||
tags:
|
||||
- Plex
|
||||
summary: Get Geo Data
|
||||
description: Returns the geolocation and locale data of the caller
|
||||
operationId: getGeoData
|
||||
responses:
|
||||
'200':
|
||||
description: Gets the geo location data of the user
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ./models/GeoData.yaml
|
||||
'400':
|
||||
$ref: ../../responses/400.yaml
|
||||
'401':
|
||||
$ref: ../../responses/401.yaml
|
||||
@@ -78,11 +78,16 @@ paths:
|
||||
/devices:
|
||||
$ref: "./paths/devices.yaml"
|
||||
|
||||
#Companions
|
||||
# Companions
|
||||
# Folder pms/paths/companions
|
||||
/companions:
|
||||
$ref: "paths/companions/companions.yaml"
|
||||
|
||||
# GeoIP
|
||||
# Folder pms/paths/geoip
|
||||
/geoip:
|
||||
$ref: "paths/geoip/geoip.yaml"
|
||||
|
||||
# Plex Home
|
||||
# Folder: pms/paths/home
|
||||
/home:
|
||||
|
||||
Reference in New Issue
Block a user