api-manager icon indicating copy to clipboard operation
api-manager copied to clipboard

Cannot Copy the Curl Request in the Publisher Portal Try Out Console

Open ashanhr opened this issue 9 months ago • 16 comments

Description

The button/icon to copy the cURL request does not appear in the Publisher Portal Try Out console.

Steps to Reproduce

  1. Create an API and deploy it.
  2. Go to the Try Out console.
  3. Execute a resource and check if the copy button appears.

Version

4.5.0-beta

Environment Details (with versions)

No response

ashanhr avatar Feb 27 '25 04:02 ashanhr

Since the developer portal tryout console has the option to copy the curl as seen in the image below, we should make it consistent on the publisher portal as well

Image

chamilaadhi avatar Sep 24 '25 10:09 chamilaadhi

I'm confident that I can make it work if you can assign it to me, and I would highly appreciate it if you could assign me to solve this.

Sanjaya-Samudra avatar Sep 26 '25 17:09 Sanjaya-Samudra

I can also work on this issue @ashanhr , i am already using wso2 products (choreo and bijira)

yasandu0505 avatar Sep 26 '25 18:09 yasandu0505

@Sanjaya-Samudra you can start working on this issue.

tharikaGitHub avatar Sep 29 '25 09:09 tharikaGitHub

@Sanjaya-Samudra you can start working on this issue.

Thank you for giving me the opportunity. I will look into this.

Sanjaya-Samudra avatar Sep 30 '25 21:09 Sanjaya-Samudra

Hello there @chamilaadhi , @tharikaGitHub , @ashanhr , @DinithHerath , @Jithmi004 ,

May I know which project repo should I work.

Sanjaya-Samudra avatar Sep 30 '25 21:09 Sanjaya-Samudra

Hi @Sanjaya-Samudra,

The front-end source code is available at wso2/apim-apps. Inside the portals directory, you will find separate source folders for each portal. This issue is specifically related to the Publisher portal.

For reference, the back-end logic is maintained in the wso2/carbon-apimgt repository.

If you want to build the complete product:

  1. First, build both apim-apps and carbon-apimgt separately.

  2. Then, add their generated snapshot versions to the pom.xml file of the relevant product-apim component that you need to build. The wso2/product-apim repository contains several components such as:

    • all-in-one-apim
    • api-control-plane
    • gateway
    • traffic-manager

    The versions are specified as:

    <!-- APIM Portals Component Version -->
    <carbon.apimgt.ui.version>9.3.67</carbon.apimgt.ui.version>
    
    <!-- APIM Component Version -->
    <carbon.apimgt.version>9.32.96</carbon.apimgt.version>
    
  3. Finally, build the product-apim component.

Please let us know if you need any further clarifications.

Thanks, Ashan

ashanhr avatar Oct 01 '25 06:10 ashanhr

Hi @Sanjaya-Samudra,

The front-end source code is available at [wso2/apim-apps](https://github.com/wso2/apim-apps). Inside the portals directory, you will find separate source folders for each portal. This issue is specifically related to the Publisher portal.

For reference, the back-end logic is maintained in the [wso2/carbon-apimgt](https://github.com/wso2/carbon-apimgt) repository.

If you want to build the complete product:

  1. First, build both apim-apps and carbon-apimgt separately.

  2. Then, add their generated snapshot versions to the pom.xml file of the relevant product-apim component that you need to build. The product-apim repository contains several components such as:

    • all-in-one-apim
    • api-control-plane
    • gateway
    • traffic-manager

    The versions are specified as:

    <carbon.apimgt.ui.version>9.3.67</carbon.apimgt.ui.version>

    <carbon.apimgt.version>9.32.96</carbon.apimgt.version>

  3. Finally, build the product-apim component.

Please let us know if you need any further clarifications.

Thanks, Ashan

I'll get into this as you said and let you know. Thank you for guiding me. I appreciate it.

Sanjaya-Samudra avatar Oct 01 '25 09:10 Sanjaya-Samudra

Hi @Sanjaya-Samudra,

The front-end source code is available at wso2/apim-apps. Inside the portals directory, you will find separate source folders for each portal. This issue is specifically related to the Publisher portal.

For reference, the back-end logic is maintained in the wso2/carbon-apimgt repository.

If you want to build the complete product:

  1. First, build both apim-apps and carbon-apimgt separately.

  2. Then, add their generated snapshot versions to the pom.xml file of the relevant product-apim component that you need to build. The wso2/product-apim repository contains several components such as:

    • all-in-one-apim
    • api-control-plane
    • gateway
    • traffic-manager

    The versions are specified as:

    <carbon.apimgt.ui.version>9.3.67</carbon.apimgt.ui.version>

    <carbon.apimgt.version>9.32.96</carbon.apimgt.version>

  3. Finally, build the product-apim component.

Please let us know if you need any further clarifications.

Thanks, Ashan

Thanks for the detailed instructions and references.

I have working on this issue since you have assigned me and found the location where the issue right in apim-apps .

However, I'm currently facing an issue with the Publisher portal. When I try to access it in the browser, the page just keeps loading indefinitely without rendering the UI. I’ve checked for obvious errors but couldn’t pinpoint the root cause. I have done everything as mentioned in apim-apps repo readme. And publisher portal build successful but launching it results keeps reloading infinitely. Tried with both java 8 and java 11. Java 8 seems to be not match with API-Manager but 11 it works. Tried the application build but it fails too for some reason, but all the dependencies installed as mentioned.

Could you please clarify if there are any additional configurations or known issues that might be related to this behavior?

Appreciate your support.

Thank you.

Sanjaya-Samudra avatar Oct 04 '25 16:10 Sanjaya-Samudra

Hi @Sanjaya-Samudra,

Shall we try the steps mentioned in the article [1]? This is what I follow when doing UI based development.

[1] https://tharika.medium.com/how-to-apply-changes-to-wso2-api-manager-react-portals-on-the-go-d1cbb50f3819

Thanks, Tharika.

tharikaGitHub avatar Oct 06 '25 09:10 tharikaGitHub

Hi @Sanjaya-Samudra, is there any update on the progress so far 👀 ?

pavinduLakshan avatar Oct 19 '25 02:10 pavinduLakshan

I actually tried it according to that way, but paths there are mentioning is actually I coudn't find, I tried to find a alternative and still working in to set up the project. But already found where to modify in order to work but I coudn't check it by myself. Its better if any guidance provided.

Thank you.

Sanjaya-Samudra avatar Oct 19 '25 12:10 Sanjaya-Samudra

Hi @Sanjaya-Samudra what are the paths you found difficult to find? Let us know the exact section you found difficult to follow. We'll help you to set it up.

tharikaGitHub avatar Oct 20 '25 05:10 tharikaGitHub

Hi @Sanjaya-Samudra what are the paths you found difficult to find? Let us know the exact section you found difficult to follow. We'll help you to set it up.

Okay, I'll let you know, give me a moment.

Sanjaya-Samudra avatar Oct 21 '25 12:10 Sanjaya-Samudra

Hi @Sanjaya-Samudra, were you able to check on this issue? How is the progress?

tharikaGitHub avatar Oct 28 '25 12:10 tharikaGitHub

Hello there @tharikaGitHub, I have made a PR under this issue, pls check on it 1215.

Hi @Sanjaya-Samudra, were you able to check on this issue? How is the progress?

Sanjaya-Samudra avatar Oct 31 '25 15:10 Sanjaya-Samudra