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

[CP] Add Thumbnail support for the API #1142

Merged
merged 11 commits into from
May 12, 2023

Conversation

chashikajw
Copy link
Contributor

@chashikajw chashikajw commented May 10, 2023

Purpose

This will add the thumbnail support for the API

This will implement the following resources in back office and devportal ds.

  1. Backoffice

    • /apis/{apiId}/thumbnail: GET, PUT
  2. Devportal

    • /apis/{apiId}/thumbnail: GET

Fixes

@codecov-commenter
Copy link

codecov-commenter commented May 10, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.36 🎉

Comparison is base (557ca8c) 33.55% compared to head (5ed5ce0) 33.91%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1142      +/-   ##
==========================================
+ Coverage   33.55%   33.91%   +0.36%     
==========================================
  Files         350      174     -176     
  Lines       39235    19813   -19422     
  Branches    12312     6267    -6045     
==========================================
- Hits        13164     6720    -6444     
+ Misses      25831    12973   -12858     
+ Partials      240      120     -120     
Flag Coverage Δ
adapter 26.69% <ø> (+0.02%) ⬆️
admin-domain-service 55.28% <ø> (ø)
backoffice-domain-service 50.29% <ø> (+4.64%) ⬆️
devportal-domain-service 51.66% <ø> (+0.25%) ⬆️
idp-domain-service 81.10% <ø> (+1.92%) ⬆️
runtime-domain-service 31.33% <ø> (ø)

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

see 187 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -62,12 +62,17 @@ service /api/am/backoffice on ep0 {
}
return apiDefinition;
}

isolated resource function get apis/[string apiId]/thumbnail(@http:Header string? 'if\-none\-match, @http:Header string? accept = "application/json") returns http:Response|commons:APKError {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we add them to the same level as previous commented out methods, otherwise with open-api bal gen command again these methods location will change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@@ -232,6 +232,9 @@ dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.int"}
]
modules = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add these same changes to dependencies.template.toml file as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

@@ -24,6 +24,7 @@ import ballerina/io;
import wso2/apk_common_lib as commons;
import ballerina/log;


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@chashikajw chashikajw changed the title [Backoffice DS] Add Thumbnail support for the API [CP] Add Thumbnail support for the API May 11, 2023
@chashikajw chashikajw force-pushed the thumbnail-support branch 3 times, most recently from b660f92 to 6683eae Compare May 11, 2023 16:32
@chashikajw chashikajw merged commit 6f6d65f into wso2:main May 12, 2023
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