4
0
Эх сурвалжийг харах

add endpoint to test connection to JellyStat

causefx@me.com 2 сар өмнө
parent
commit
4f3e53971a
1 өөрчлөгдсөн 55 нэмэгдсэн , 0 устгасан
  1. 55 0
      docs/api.json

+ 55 - 0
docs/api.json

@@ -3087,6 +3087,61 @@
                 ]
             }
         },
+        "/api/v2/test/jellystat": {
+            "post": {
+                "tags": [
+                    "test connection"
+                ],
+                "summary": "Test connection to JellyStat",
+                "responses": {
+                    "200": {
+                        "description": "Success",
+                        "content": {
+                            "application/json": {
+                                "schema": {
+                                    "$ref": "#/components/schemas/success-message"
+                                }
+                            }
+                        }
+                    },
+                    "401": {
+                        "description": "Unauthorized",
+                        "content": {
+                            "application/json": {
+                                "schema": {
+                                    "$ref": "#/components/schemas/unauthorized-message"
+                                }
+                            }
+                        }
+                    },
+                    "422": {
+                        "description": "Error",
+                        "content": {
+                            "application/json": {
+                                "schema": {
+                                    "$ref": "#/components/schemas/error-message"
+                                }
+                            }
+                        }
+                    },
+                    "500": {
+                        "description": "Error",
+                        "content": {
+                            "application/json": {
+                                "schema": {
+                                    "$ref": "#/components/schemas/error-message"
+                                }
+                            }
+                        }
+                    }
+                },
+                "security": [
+                    {
+                        "api_key": []
+                    }
+                ]
+            }
+        },
         "/api/v2/emby/register": {
             "post": {
                 "tags": [