From 98257cfaf7f6ebe3dbadc0dfe2a5f6e8cdd745be Mon Sep 17 00:00:00 2001 From: Daniel Languiller Date: Thu, 24 Jul 2025 11:13:32 +1000 Subject: [PATCH 1/2] add daniel json --- .../stable/2024-11-01/daniel.json | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/daniel.json diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/daniel.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/daniel.json new file mode 100644 index 000000000000..ef2e48e4679a --- /dev/null +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/daniel.json @@ -0,0 +1,85 @@ +{ + "swagger": "2.0", + "info": { + "version": "2025-07-24", + "title": "DanielTrivialAPI", + "description": "A trivial example API for testing purposes with /daniel path." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "paths": { + "/subscriptions/{subscriptionId}/daniel/hello": { + "get": { + "tags": [ + "Daniel" + ], + "operationId": "Daniel_Hello_Get", + "description": "Returns a friendly greeting message.", + "parameters": [ + { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription ID" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DanielHelloResponse" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ] + } + } + }, + "definitions": { + "DanielHelloResponse": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ] + }, + "ErrorResponse": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "code", + "message" + ] + } + }, + "required": [ + "error" + ] + } + } +} \ No newline at end of file From 52e969c92baa36a2d360cb257e341023658673af Mon Sep 17 00:00:00 2001 From: Daniel Languiller Date: Thu, 24 Jul 2025 11:50:33 +1000 Subject: [PATCH 2/2] change api version to valid --- .../Microsoft.KeyVault/stable/2024-11-01/daniel.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/daniel.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/daniel.json index ef2e48e4679a..0c5e08b77432 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/daniel.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2024-11-01/daniel.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2025-07-24", + "version": "2025-04-01", "title": "DanielTrivialAPI", "description": "A trivial example API for testing purposes with /daniel path." }, @@ -24,6 +24,15 @@ "required": true, "type": "string", "description": "Subscription ID" + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "2024-01-01" + ] } ], "responses": {