wso2 / carbon-apimgt

Apache License 2.0
165 stars 620 forks source link

Add devportal rest api changes for API Chat feature #12347

Closed ashera96 closed 3 months ago

ashera96 commented 3 months ago

Purpose

Add devportal REST API changes needed for API Chat feature.

Approach

We have introduced two resources to handle the API Chat testing capabilities:

The following configuration is added to the deployment.toml to handle feature enablement and configuring.

[apim.ai]
enable = true
token = "<on-prem key>"
endpoint="http://localhost:9090"

Related PRs

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 1.97802% with 446 lines in your changes are missing coverage. Please review.

Project coverage is 47.48%. Comparing base (e7e8b35) to head (5292151). Report is 52 commits behind head on master.

:exclamation: Current head 5292151 differs from pull request most recent head b9053a0. Consider uploading reports for the commit b9053a0 to get more accurate results

Files Patch % Lines
...imgt/rest/api/store/v1/dto/ApiChatResponseDTO.java 0.00% 67 Missing :warning:
...mgt/rest/api/store/v1/impl/ApisApiServiceImpl.java 0.00% 66 Missing :warning:
...pimgt/rest/api/store/v1/dto/ApiChatRequestDTO.java 0.00% 46 Missing :warning:
...st/api/store/v1/dto/ApiChatRequestResponseDTO.java 0.00% 46 Missing :warning:
...t/api/store/v1/dto/ApiChatResponseResourceDTO.java 0.00% 38 Missing :warning:
...est/api/store/v1/dto/ApiChatRequestApiSpecDTO.java 0.00% 30 Missing :warning:
...imgt/rest/api/store/v1/dto/EnrichedAPISpecDTO.java 0.00% 30 Missing :warning:
...n/apimgt/rest/api/store/v1/dto/SampleQueryDTO.java 0.00% 30 Missing :warning:
...ava/org/wso2/carbon/apimgt/impl/utils/APIUtil.java 18.75% 26 Missing :warning:
...rbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java 0.00% 18 Missing :warning:
... and 8 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #12347 +/- ## ============================================ + Coverage 47.47% 47.48% +0.01% - Complexity 4147 4188 +41 ============================================ Files 1840 1851 +11 Lines 136468 136988 +520 Branches 19753 19812 +59 ============================================ + Hits 64786 65054 +268 - Misses 64037 64268 +231 - Partials 7645 7666 +21 ``` | [Flag](https://app.codecov.io/gh/wso2/carbon-apimgt/pull/12347/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wso2) | Coverage Δ | | |---|---|---| | [integration_tests](https://app.codecov.io/gh/wso2/carbon-apimgt/pull/12347/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wso2) | `42.28% <1.97%> (+0.06%)` | :arrow_up: | | [unit_tests](https://app.codecov.io/gh/wso2/carbon-apimgt/pull/12347/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wso2) | `20.13% <0.00%> (-0.30%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wso2#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.