Add templates Add api.json
12 KiB
SystemAPI
All URIs are relative to http://localhost:8096
Method | HTTP request | Description |
---|---|---|
getEndpointInfo | GET /System/Endpoint | Gets information about the request endpoint. |
getLogFile | GET /System/Logs/Log | Gets a log file. |
getPingSystem | GET /System/Ping | Pings the system. |
getPublicSystemInfo | GET /System/Info/Public | Gets public information about the server. |
getServerLogs | GET /System/Logs | Gets a list of available server log files. |
getSystemInfo | GET /System/Info | Gets information about the server. |
getWakeOnLanInfo | GET /System/WakeOnLanInfo | Gets wake on lan information. |
postPingSystem | POST /System/Ping | Pings the system. |
restartApplication | POST /System/Restart | Restarts the application. |
shutdownApplication | POST /System/Shutdown | Shuts down the application. |
getEndpointInfo
open class func getEndpointInfo(completion: @escaping (_ data: EndPointInfo?, _ error: Error?) -> Void)
Gets information about the request endpoint.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Gets information about the request endpoint.
SystemAPI.getEndpointInfo() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getLogFile
open class func getLogFile(name: String, completion: @escaping (_ data: URL?, _ error: Error?) -> Void)
Gets a log file.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
let name = "name_example" // String | The name of the log file to get.
// Gets a log file.
SystemAPI.getLogFile(name: name) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | String | The name of the log file to get. |
Return type
URL
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getPingSystem
open class func getPingSystem(completion: @escaping (_ data: String?, _ error: Error?) -> Void)
Pings the system.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Pings the system.
SystemAPI.getPingSystem() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
String
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getPublicSystemInfo
open class func getPublicSystemInfo(completion: @escaping (_ data: PublicSystemInfo?, _ error: Error?) -> Void)
Gets public information about the server.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Gets public information about the server.
SystemAPI.getPublicSystemInfo() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getServerLogs
open class func getServerLogs(completion: @escaping (_ data: [LogFile]?, _ error: Error?) -> Void)
Gets a list of available server log files.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Gets a list of available server log files.
SystemAPI.getServerLogs() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getSystemInfo
open class func getSystemInfo(completion: @escaping (_ data: SystemInfo?, _ error: Error?) -> Void)
Gets information about the server.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Gets information about the server.
SystemAPI.getSystemInfo() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getWakeOnLanInfo
open class func getWakeOnLanInfo(completion: @escaping (_ data: [WakeOnLanInfo]?, _ error: Error?) -> Void)
Gets wake on lan information.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Gets wake on lan information.
SystemAPI.getWakeOnLanInfo() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postPingSystem
open class func postPingSystem(completion: @escaping (_ data: String?, _ error: Error?) -> Void)
Pings the system.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Pings the system.
SystemAPI.postPingSystem() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
String
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restartApplication
open class func restartApplication(completion: @escaping (_ data: Void?, _ error: Error?) -> Void)
Restarts the application.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Restarts the application.
SystemAPI.restartApplication() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
shutdownApplication
open class func shutdownApplication(completion: @escaping (_ data: Void?, _ error: Error?) -> Void)
Shuts down the application.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Shuts down the application.
SystemAPI.shutdownApplication() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]