From 2da158d20c3dad5f1d8f7b78111ac83133b02c48 Mon Sep 17 00:00:00 2001 From: Sander Jochems Date: Sat, 8 Feb 2025 13:15:48 +0100 Subject: [PATCH] Add expand query parameter to single selection --- backend/schema/paths/nginx/certificates/certID/get.json | 9 +++++++++ backend/schema/paths/nginx/dead-hosts/hostID/get.json | 9 +++++++++ backend/schema/paths/nginx/proxy-hosts/hostID/get.json | 9 +++++++++ .../schema/paths/nginx/redirection-hosts/hostID/get.json | 9 +++++++++ backend/schema/paths/nginx/streams/streamID/get.json | 9 +++++++++ backend/schema/paths/users/userID/get.json | 9 +++++++++ 6 files changed, 54 insertions(+) diff --git a/backend/schema/paths/nginx/certificates/certID/get.json b/backend/schema/paths/nginx/certificates/certID/get.json index 22317b33..e10dde22 100644 --- a/backend/schema/paths/nginx/certificates/certID/get.json +++ b/backend/schema/paths/nginx/certificates/certID/get.json @@ -17,6 +17,15 @@ }, "required": true, "example": 1 + }, + { + "in": "query", + "name": "expand", + "description": "Expansions", + "schema": { + "type": "string", + "enum": ["owner"] + } } ], "responses": { diff --git a/backend/schema/paths/nginx/dead-hosts/hostID/get.json b/backend/schema/paths/nginx/dead-hosts/hostID/get.json index 47e2f8b1..6cf9d22a 100644 --- a/backend/schema/paths/nginx/dead-hosts/hostID/get.json +++ b/backend/schema/paths/nginx/dead-hosts/hostID/get.json @@ -17,6 +17,15 @@ }, "required": true, "example": 1 + }, + { + "in": "query", + "name": "expand", + "description": "Expansions", + "schema": { + "type": "string", + "enum": ["owner", "certificate"] + } } ], "responses": { diff --git a/backend/schema/paths/nginx/proxy-hosts/hostID/get.json b/backend/schema/paths/nginx/proxy-hosts/hostID/get.json index 5e10a9cf..37d0b417 100644 --- a/backend/schema/paths/nginx/proxy-hosts/hostID/get.json +++ b/backend/schema/paths/nginx/proxy-hosts/hostID/get.json @@ -17,6 +17,15 @@ }, "required": true, "example": 1 + }, + { + "in": "query", + "name": "expand", + "description": "Expansions", + "schema": { + "type": "string", + "enum": ["access_list", "owner", "certificate"] + } } ], "responses": { diff --git a/backend/schema/paths/nginx/redirection-hosts/hostID/get.json b/backend/schema/paths/nginx/redirection-hosts/hostID/get.json index d780f874..f2a090cd 100644 --- a/backend/schema/paths/nginx/redirection-hosts/hostID/get.json +++ b/backend/schema/paths/nginx/redirection-hosts/hostID/get.json @@ -17,6 +17,15 @@ }, "required": true, "example": 1 + }, + { + "in": "query", + "name": "expand", + "description": "Expansions", + "schema": { + "type": "string", + "enum": ["owner", "certificate"] + } } ], "responses": { diff --git a/backend/schema/paths/nginx/streams/streamID/get.json b/backend/schema/paths/nginx/streams/streamID/get.json index 801af13a..cfb6478c 100644 --- a/backend/schema/paths/nginx/streams/streamID/get.json +++ b/backend/schema/paths/nginx/streams/streamID/get.json @@ -17,6 +17,15 @@ }, "required": true, "example": 2 + }, + { + "in": "query", + "name": "expand", + "description": "Expansions", + "schema": { + "type": "string", + "enum": ["owner", "certificate"] + } } ], "responses": { diff --git a/backend/schema/paths/users/userID/get.json b/backend/schema/paths/users/userID/get.json index cb8ac61b..27099970 100644 --- a/backend/schema/paths/users/userID/get.json +++ b/backend/schema/paths/users/userID/get.json @@ -26,6 +26,15 @@ "required": true, "description": "User ID or 'me' for yourself", "example": 1 + }, + { + "in": "query", + "name": "expand", + "description": "Expansions", + "schema": { + "type": "string", + "enum": ["permissions"] + } } ], "responses": {