Xray-App / xray-maven-plugin

Xray Maven Plugin
BSD 3-Clause "New" or "Revised" License
26 stars 12 forks source link

Adding support for region based XRay APIs #84

Closed sandeepraina-lenze closed 3 months ago

sandeepraina-lenze commented 3 months ago

This is a very helpful plugin. Based on current implementation I want to know how can we extend this plugin for region based XRAY APIs.

e.g. default API URL is https://xray.cloud.getxray.app/ But if I need to access region based XRAY API like https://en.xray.cloud.getxray.app/api/v2/

How can we do it through this plugin.

Please share your insights on this.

bitcoder commented 3 months ago

thanks @sandeepraina-lenze , I will need to research it out; will come back whenever I have feedback

bitcoder commented 3 months ago

The official documentation of Xray Cloud now provides that info. I'll need to revisit the code on this plugin to provide this feature. Note that you can still use the https://xray.cloud.getxray.app but it's not the most efficient one.

bitcoder commented 3 months ago

@sandeepraina-lenze can you please try the code on the cloud_region_endpoints branch? It generates a 0.8.0-beta version. I've update the README file on that branch

sandeepraina-lenze commented 3 months ago

Hello @bitcoder and thank for your response on this. This was real quick. I will try with the changes in the branch and will share the feedback with you ASAP.

sandeepraina-lenze commented 3 months ago

Quick question, from which location can I pull this build

bitcoder commented 3 months ago

I have not generated the build. The code is on the branch that I mentioned. You can checkout the code and build it yourself. If you want a jar, I'll need to send it later

bitcoder commented 3 months ago

Here is the package. Install it locally on your local Maven repository and try it out. Unzip it and install it xray-maven-plugin-0.8.0-beta.jar.zip

sandeepraina-lenze commented 3 months ago

Hello @bitcoder

Thank you for the changes, I checked the changes and they work like charm. Will Close the ticket

sandeepraina-lenze commented 3 months ago

Working as expected