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.2020 at 04:40

ptgiang's gravatar image

ptgiang
(suspended)
accept rate: 0%

edited 25.03.2020 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.2020 at 03:59

Reguel%20Wermelinger's gravatar image

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

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:

×147
×33

Asked: 25.03.2020 at 04:40

Seen: 2,789 times

Last updated: 26.03.2020 at 03:59