APIM REST API not returning schemas collection.

Shekhar Nadide 201 Reputation points
2023-09-19T06:14:06.0233333+00:00

Schemas rest Api not returning expected result. Find below image for reference. Could you please let me know, any breaking changes deployed for all versions of APIM Rest API.

User's image

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,447 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,261 Reputation points
    2023-09-20T17:09:42.2866667+00:00

    Hi Shekhar Nadide Thanks for the update. I am able to get the expected result from below rest api

    GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas?api-version=2021-08-01

    {
      "value": [
        {
          "id": "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.ApiManagement/service/xxxx/apis/echo-api/schemas/1657606594116",
          "type": "Microsoft.ApiManagement/service/apis/schemas",
          "name": "1657606594116",
          "properties": {
            "contentType": "application/vnd.oai.openapi.components+json",
            "document": {
              "components": {
                "schemas": {}
              }
            }
          }
        }
      ],
      "count": 1
    }
    

    could you please let me know if you still face any issues.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.