wso2 / api-manager

All issues, tasks, improvements and new features of WSO2 API Manager
Apache License 2.0
34 stars 8 forks source link

[APIM 4.0.0]: Issue with API Artifact Type Information Retrieval in APIM 4.0.0 #6471 #2927

Closed Hamool-Nizar closed 3 months ago

Hamool-Nizar commented 4 months ago

Description

We encountered an issue, when attempting to retrieve information of the API Product using the Devportal REST API call [1]. Specifically, the "type": field returns API for the API products but when using this Rest API call [2] the customer was able to retrieve all the API Product type information as expected.

We believe based on the above results that this could be a bug that needs to be addressed. Therefore, could you please do the needful and provide a fix/solution for this issue.

[1]. https://apim.docs.wso2.com/en/4.0.0/reference/product-apis/devportal-apis/devportal-v2/devportal-v2/#tag/Unified-Search/paths/~1search/get [2]. https://apim.docs.wso2.com/en/4.0.0/reference/product-apis/devportal-apis/devportal-v2/devportal-v2/#tag/APIs/paths/~1apis~1{apiId}/get

Steps to Reproduce

  1. Create and publish an API Product with all required API resources.
  2. Invoke the Rest API call [2] to retrieve details of this API Product.

    {
    
           "id": "baa0e670-d06d-4d67-96de-4690248a72c3",
           "name": "TestAPIProduct",
           "description": null,
           "context": "/testProduct",
           "version": "1.0.0",
           "type": "APIPRODUCT",
           "provider": "admin",
           "lifeCycleStatus": "PUBLISHED",
           "thumbnailUri": null,
           "avgRating": "0.0",
           "throttlingPolicies": [
               "Unlimited"
           ],
  3. Invoke the Rest API call [1] to search for this API Product.
    {
            "id": "baa0e670-d06d-4d67-96de-4690248a72c3",
            "name": "TestAPIProduct",
            "type": "API",
            "transportType": null,
            "description": null,
            "context": "/testProduct",
            "version": "1.0.0",
            "provider": "admin",
            "status": "PUBLISHED",
            "thumbnailUri": null,
            "businessInformation": {
                "businessOwner": null,
                "businessOwnerEmail": null,
                "technicalOwner": null,
                "technicalOwnerEmail": null
            },

Affected Component

APIM

Version

4.0.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response