From a3fcf490beb814339bcea0fbdd6abfc61348f909 Mon Sep 17 00:00:00 2001 From: Erlend Rushfeldt <89841014+Erlendrushf@users.noreply.github.com> Date: Mon, 2 Feb 2026 10:43:51 +0100 Subject: [PATCH] Revert "apimartifacts - extract" --- .../apiInformation.json | 19 - .../specification.yaml | 603 ------------------ .../backendInformation.json | 8 - .../appservice/backendInformation.json | 16 - .../apim-instance/namedValueInformation.json | 8 - .../productApiInformation.json | 1 - .../productGroupInformation.json | 1 - apimartifacts/products/appservice/policy.xml | 30 - .../appservice/productInformation.json | 8 - apimartifacts/products/starter/policy.xml | 4 + .../subscriptionInformation.json | 8 - .../tags/General/tagInformation.json | 5 - apimartifacts/tags/Quotes/tagInformation.json | 5 - apimartifacts/tags/Tasks/tagInformation.json | 5 - .../tags/Utilities/tagInformation.json | 5 - .../tags/Weather/tagInformation.json | 5 - 16 files changed, 4 insertions(+), 727 deletions(-) delete mode 100644 apimartifacts/apis/azure-app-service-demo-api/apiInformation.json delete mode 100644 apimartifacts/apis/azure-app-service-demo-api/specification.yaml delete mode 100644 apimartifacts/backends/WebApp_apiopsdemoapp/backendInformation.json delete mode 100644 apimartifacts/backends/appservice/backendInformation.json delete mode 100644 apimartifacts/named values/apim-instance/namedValueInformation.json delete mode 100644 apimartifacts/products/appservice/apis/azure-app-service-demo-api/productApiInformation.json delete mode 100644 apimartifacts/products/appservice/groups/administrators/productGroupInformation.json delete mode 100644 apimartifacts/products/appservice/policy.xml delete mode 100644 apimartifacts/products/appservice/productInformation.json delete mode 100644 apimartifacts/subscriptions/697a854e46346112509086bc/subscriptionInformation.json delete mode 100644 apimartifacts/tags/General/tagInformation.json delete mode 100644 apimartifacts/tags/Quotes/tagInformation.json delete mode 100644 apimartifacts/tags/Tasks/tagInformation.json delete mode 100644 apimartifacts/tags/Utilities/tagInformation.json delete mode 100644 apimartifacts/tags/Weather/tagInformation.json diff --git a/apimartifacts/apis/azure-app-service-demo-api/apiInformation.json b/apimartifacts/apis/azure-app-service-demo-api/apiInformation.json deleted file mode 100644 index dd2bd79..0000000 --- a/apimartifacts/apis/azure-app-service-demo-api/apiInformation.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "properties": { - "path": "appservice", - "apiRevision": "1", - "authenticationSettings": {}, - "description": "A comprehensive demo API showcasing FastAPI capabilities", - "isCurrent": true, - "displayName": "Azure App Service Demo API", - "protocols": [ - "http", - "https" - ], - "subscriptionKeyParameterNames": { - "header": "Ocp-Apim-Subscription-Key", - "query": "subscription-key" - }, - "subscriptionRequired": false - } -} \ No newline at end of file diff --git a/apimartifacts/apis/azure-app-service-demo-api/specification.yaml b/apimartifacts/apis/azure-app-service-demo-api/specification.yaml deleted file mode 100644 index dbe6a77..0000000 --- a/apimartifacts/apis/azure-app-service-demo-api/specification.yaml +++ /dev/null @@ -1,603 +0,0 @@ -openapi: 3.0.1 -info: - title: Azure App Service Demo API - description: A comprehensive demo API showcasing FastAPI capabilities - version: '1.0' -servers: - - url: http://p-swe-apim-old.azure-api.net/appservice - - url: https://p-swe-apim-old.azure-api.net/appservice -paths: - /: - get: - tags: - - General - summary: Root - description: Root endpoint - Welcome message - operationId: root__get - responses: - '200': - description: Successful Response - content: - application/json: - schema: { } - /health: - get: - tags: - - General - summary: Health Check - description: Health check endpoint for monitoring - operationId: health_check_health_get - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/HealthResponse' - example: - status: string - timestamp: string - version: string - /api/quotes: - get: - tags: - - Quotes - summary: Get Quotes - description: "Get inspirational quotes. Optionally filter by category.\n\nCategories: motivation, innovation, programming" - operationId: get_quotes_api_quotes_get - parameters: - - name: category - in: query - description: Filter by category - schema: - title: Category - type: string - anyOf: - - type: string - - type: 'null' - description: Filter by category - responses: - '200': - description: Successful Response - content: - application/json: - schema: - title: Response Get Quotes Api Quotes Get - type: array - items: - $ref: '#/components/schemas/Quote' - example: - - id: string - text: string - author: string - category: string - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - example: - detail: - - loc: - - { } - msg: string - type: string - /api/quotes/random: - get: - tags: - - Quotes - summary: Get Random Quote - description: Get a random inspirational quote - operationId: get_random_quote_api_quotes_random_get - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/Quote' - example: - id: string - text: string - author: string - category: string - '/api/quotes/{quote_id}': - get: - tags: - - Quotes - summary: Get Quote By Id - description: Get a specific quote by ID - operationId: get_quote_by_id_api_quotes__quote_id__get - parameters: - - name: quote_id - in: path - required: true - schema: - title: Quote Id - type: string - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/Quote' - example: - id: string - text: string - author: string - category: string - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - example: - detail: - - loc: - - { } - msg: string - type: string - '/api/weather/{city}': - get: - tags: - - Weather - summary: Get Weather - description: Get mock weather data for a city - operationId: get_weather_api_weather__city__get - parameters: - - name: city - in: path - required: true - schema: - title: City - type: string - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/WeatherResponse' - example: - city: string - temperature: 0 - condition: string - humidity: 0 - timestamp: string - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - example: - detail: - - loc: - - { } - msg: string - type: string - /api/tasks: - get: - tags: - - Tasks - summary: Get Tasks - description: Get all tasks. Optionally filter by completion status. - operationId: get_tasks_api_tasks_get - parameters: - - name: completed - in: query - description: Filter by completion status - schema: - title: Completed - type: string - anyOf: - - type: boolean - - type: 'null' - description: Filter by completion status - responses: - '200': - description: Successful Response - content: - application/json: - schema: - title: Response Get Tasks Api Tasks Get - type: array - items: - $ref: '#/components/schemas/Task' - example: - - id: { } - title: string - description: { } - completed: false - created_at: { } - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - example: - detail: - - loc: - - { } - msg: string - type: string - post: - tags: - - Tasks - summary: Create Task - description: Create a new task - operationId: create_task_api_tasks_post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Task' - example: - id: { } - title: string - description: { } - completed: false - created_at: { } - responses: - '201': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/Task' - example: - id: { } - title: string - description: { } - completed: false - created_at: { } - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - example: - detail: - - loc: - - { } - msg: string - type: string - '/api/tasks/{task_id}': - get: - tags: - - Tasks - summary: Get Task - description: Get a specific task by ID - operationId: get_task_api_tasks__task_id__get - parameters: - - name: task_id - in: path - required: true - schema: - title: Task Id - type: string - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/Task' - example: - id: { } - title: string - description: { } - completed: false - created_at: { } - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - example: - detail: - - loc: - - { } - msg: string - type: string - put: - tags: - - Tasks - summary: Update Task - description: Update an existing task - operationId: update_task_api_tasks__task_id__put - parameters: - - name: task_id - in: path - required: true - schema: - title: Task Id - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Task' - example: - id: { } - title: string - description: { } - completed: false - created_at: { } - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/Task' - example: - id: { } - title: string - description: { } - completed: false - created_at: { } - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - example: - detail: - - loc: - - { } - msg: string - type: string - delete: - tags: - - Tasks - summary: Delete Task - description: Delete a task - operationId: delete_task_api_tasks__task_id__delete - parameters: - - name: task_id - in: path - required: true - schema: - title: Task Id - type: string - responses: - '200': - description: Successful Response - content: - application/json: - schema: { } - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - example: - detail: - - loc: - - { } - msg: string - type: string - /api/random-user: - get: - tags: - - Utilities - summary: Get Random User - description: Generate a random user profile - operationId: get_random_user_api_random_user_get - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/UserProfile' - example: - username: string - email: string - full_name: string - avatar_url: { } - /api/uuid: - get: - tags: - - Utilities - summary: Generate Uuid - description: Generate one or more UUIDs - operationId: generate_uuid_api_uuid_get - parameters: - - name: count - in: query - description: Number of UUIDs to generate - schema: - title: Count - maximum: 100.0 - minimum: 1.0 - type: integer - description: Number of UUIDs to generate - default: 1 - responses: - '200': - description: Successful Response - content: - application/json: - schema: { } - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - example: - detail: - - loc: - - { } - msg: string - type: string - /api/stats: - get: - tags: - - General - summary: Get Stats - description: Get application statistics - operationId: get_stats_api_stats_get - responses: - '200': - description: Successful Response - content: - application/json: - schema: { } -components: - schemas: - HTTPValidationError: - title: HTTPValidationError - type: object - properties: - detail: - title: Detail - type: array - items: - $ref: '#/components/schemas/ValidationError' - HealthResponse: - title: HealthResponse - required: - - status - - timestamp - - version - type: object - properties: - status: - title: Status - type: string - timestamp: - title: Timestamp - type: string - version: - title: Version - type: string - Quote: - title: Quote - required: - - id - - text - - author - - category - type: object - properties: - id: - title: Id - type: string - text: - title: Text - type: string - author: - title: Author - type: string - category: - title: Category - type: string - Task: - title: Task - required: - - title - type: object - properties: - id: - title: Id - anyOf: - - type: string - - type: 'null' - title: - title: Title - maxLength: 100 - minLength: 1 - type: string - description: - title: Description - anyOf: - - type: string - - type: 'null' - completed: - title: Completed - type: boolean - default: false - created_at: - title: Created At - anyOf: - - type: string - - type: 'null' - UserProfile: - title: UserProfile - required: - - username - - email - - full_name - type: object - properties: - username: - title: Username - type: string - email: - title: Email - type: string - full_name: - title: Full Name - type: string - avatar_url: - title: Avatar Url - anyOf: - - type: string - - type: 'null' - ValidationError: - title: ValidationError - required: - - loc - - msg - - type - type: object - properties: - loc: - title: Location - type: array - items: - anyOf: - - type: string - - type: integer - msg: - title: Message - type: string - type: - title: Error Type - type: string - WeatherResponse: - title: WeatherResponse - required: - - city - - temperature - - condition - - humidity - - timestamp - type: object - properties: - city: - title: City - type: string - temperature: - title: Temperature - type: number - condition: - title: Condition - type: string - humidity: - title: Humidity - type: integer - timestamp: - title: Timestamp - type: string \ No newline at end of file diff --git a/apimartifacts/backends/WebApp_apiopsdemoapp/backendInformation.json b/apimartifacts/backends/WebApp_apiopsdemoapp/backendInformation.json deleted file mode 100644 index 4112b83..0000000 --- a/apimartifacts/backends/WebApp_apiopsdemoapp/backendInformation.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "properties": { - "description": "apiopsdemoapp", - "protocol": "http", - "resourceId": "https://management.azure.com/subscriptions/2baba5e9-93df-4094-9250-cdca14c9175a/resourceGroups/p-swe-rg-backend/providers/Microsoft.Web/sites/apiopsdemoapp", - "url": "https://apiopsdemoapp.azurewebsites.net" - } -} \ No newline at end of file diff --git a/apimartifacts/backends/appservice/backendInformation.json b/apimartifacts/backends/appservice/backendInformation.json deleted file mode 100644 index dad6fcc..0000000 --- a/apimartifacts/backends/appservice/backendInformation.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "properties": { - "credentials": { - "header": {}, - "query": {} - }, - "protocol": "http", - "resourceId": "https://management.azure.com/subscriptions/2baba5e9-93df-4094-9250-cdca14c9175a/resourceGroups/p-swe-rg-backend/providers/Microsoft.Web/sites/apiopsdemoapp", - "tls": { - "validateCertificateChain": true, - "validateCertificateName": true - }, - "type": "Single", - "url": "https://apiopsdemoapp.azurewebsites.net/" - } -} \ No newline at end of file diff --git a/apimartifacts/named values/apim-instance/namedValueInformation.json b/apimartifacts/named values/apim-instance/namedValueInformation.json deleted file mode 100644 index a7a9ca9..0000000 --- a/apimartifacts/named values/apim-instance/namedValueInformation.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "properties": { - "displayName": "apim-instance", - "secret": false, - "tags": [], - "value": "old" - } -} \ No newline at end of file diff --git a/apimartifacts/products/appservice/apis/azure-app-service-demo-api/productApiInformation.json b/apimartifacts/products/appservice/apis/azure-app-service-demo-api/productApiInformation.json deleted file mode 100644 index 9e26dfe..0000000 --- a/apimartifacts/products/appservice/apis/azure-app-service-demo-api/productApiInformation.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/apimartifacts/products/appservice/groups/administrators/productGroupInformation.json b/apimartifacts/products/appservice/groups/administrators/productGroupInformation.json deleted file mode 100644 index 9e26dfe..0000000 --- a/apimartifacts/products/appservice/groups/administrators/productGroupInformation.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/apimartifacts/products/appservice/policy.xml b/apimartifacts/products/appservice/policy.xml deleted file mode 100644 index f6c5c81..0000000 --- a/apimartifacts/products/appservice/policy.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - {{apim-instance}} - - - - - - - - \ No newline at end of file diff --git a/apimartifacts/products/appservice/productInformation.json b/apimartifacts/products/appservice/productInformation.json deleted file mode 100644 index 01a7896..0000000 --- a/apimartifacts/products/appservice/productInformation.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "properties": { - "displayName": "appservice", - "description": "apiops demo", - "state": "published", - "subscriptionRequired": false - } -} \ No newline at end of file diff --git a/apimartifacts/products/starter/policy.xml b/apimartifacts/products/starter/policy.xml index 3fe11d7..ea73b4d 100644 --- a/apimartifacts/products/starter/policy.xml +++ b/apimartifacts/products/starter/policy.xml @@ -14,6 +14,7 @@ + @@ -22,4 +23,7 @@ + + + \ No newline at end of file diff --git a/apimartifacts/subscriptions/697a854e46346112509086bc/subscriptionInformation.json b/apimartifacts/subscriptions/697a854e46346112509086bc/subscriptionInformation.json deleted file mode 100644 index b25d6ed..0000000 --- a/apimartifacts/subscriptions/697a854e46346112509086bc/subscriptionInformation.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "properties": { - "scope": "/subscriptions/2baba5e9-93df-4094-9250-cdca14c9175a/resourceGroups/p-swe-apim-old/providers/Microsoft.ApiManagement/service/p-swe-apim-old/products/appservice", - "allowTracing": false, - "ownerId": "/subscriptions/2baba5e9-93df-4094-9250-cdca14c9175a/resourceGroups/p-swe-apim-old/providers/Microsoft.ApiManagement/service/p-swe-apim-old/users/1", - "state": "active" - } -} \ No newline at end of file diff --git a/apimartifacts/tags/General/tagInformation.json b/apimartifacts/tags/General/tagInformation.json deleted file mode 100644 index d53f9d2..0000000 --- a/apimartifacts/tags/General/tagInformation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "properties": { - "displayName": "General" - } -} \ No newline at end of file diff --git a/apimartifacts/tags/Quotes/tagInformation.json b/apimartifacts/tags/Quotes/tagInformation.json deleted file mode 100644 index ca86bca..0000000 --- a/apimartifacts/tags/Quotes/tagInformation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "properties": { - "displayName": "Quotes" - } -} \ No newline at end of file diff --git a/apimartifacts/tags/Tasks/tagInformation.json b/apimartifacts/tags/Tasks/tagInformation.json deleted file mode 100644 index 6a2e579..0000000 --- a/apimartifacts/tags/Tasks/tagInformation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "properties": { - "displayName": "Tasks" - } -} \ No newline at end of file diff --git a/apimartifacts/tags/Utilities/tagInformation.json b/apimartifacts/tags/Utilities/tagInformation.json deleted file mode 100644 index 0a81347..0000000 --- a/apimartifacts/tags/Utilities/tagInformation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "properties": { - "displayName": "Utilities" - } -} \ No newline at end of file diff --git a/apimartifacts/tags/Weather/tagInformation.json b/apimartifacts/tags/Weather/tagInformation.json deleted file mode 100644 index b63dbf0..0000000 --- a/apimartifacts/tags/Weather/tagInformation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "properties": { - "displayName": "Weather" - } -} \ No newline at end of file