Hello everyone,

I have a maven project (jar), for example, my-api. In this project, I defined a REST API endpoint:

@Path("/v1/dossiers")
public class MyAPI {

    @Path("/")
    public Response getDossiers() {
        // our logic
        return response;
    }
}

I have an ivy project, for example, my-app and I added the jar dependency my-api. I can't access the API above from client

But, I tried to create a my-api as an ivy project (iar) and added it as an iar dependency my-app. It works well.

My question is: Can I define the REST API endpoint in a jar file? If yes, how can I do that?

P/s: We're using Ivy 7.0.11

asked 25.03 at 04:40

ptgiang's gravatar image

ptgiang
1615
accept rate: 0%

edited 25.03 at 05:51


As of today you can't. Since we only load JAX-RS annotated resources from the binary class output dir (classes).

But I think we could easily allow such contributions in the future. Please ask and negotiate the priority of this change request via support.axonivy.com.

link

answered 26.03 at 03:59

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k21857
accept rate: 70%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×142
×32

Asked: 25.03 at 04:40

Seen: 161 times

Last updated: 26.03 at 03:59