Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add devportal rest api changes for API Chat feature #12347

Merged
merged 4 commits into from
Mar 23, 2024

Conversation

ashera96
Copy link
Contributor

Purpose

Add devportal REST API changes needed for API Chat feature.

Approach

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

  • apis/{apiId}/api-chat/prepare
  • apis/{apiId}/api-chat/execute

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

Copy link

codecov bot commented Mar 21, 2024

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.

❗ 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 ⚠️
...mgt/rest/api/store/v1/impl/ApisApiServiceImpl.java 0.00% 66 Missing ⚠️
...pimgt/rest/api/store/v1/dto/ApiChatRequestDTO.java 0.00% 46 Missing ⚠️
...st/api/store/v1/dto/ApiChatRequestResponseDTO.java 0.00% 46 Missing ⚠️
...t/api/store/v1/dto/ApiChatResponseResourceDTO.java 0.00% 38 Missing ⚠️
...est/api/store/v1/dto/ApiChatRequestApiSpecDTO.java 0.00% 30 Missing ⚠️
...imgt/rest/api/store/v1/dto/EnrichedAPISpecDTO.java 0.00% 30 Missing ⚠️
...n/apimgt/rest/api/store/v1/dto/SampleQueryDTO.java 0.00% 30 Missing ⚠️
...ava/org/wso2/carbon/apimgt/impl/utils/APIUtil.java 18.75% 26 Missing ⚠️
...rbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java 0.00% 18 Missing ⚠️
... and 8 more
Additional details and impacted files
@@             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 Coverage Δ
integration_tests 42.28% <1.97%> (+0.06%) ⬆️
unit_tests 20.13% <0.00%> (-0.30%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ashera96 ashera96 changed the base branch from master to ai-features March 23, 2024 12:46
@Arshardh Arshardh merged commit 1ab51af into wso2:ai-features Mar 23, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants