Springboot REST context mapping - multiple applications












0














I have 3 different springboot REST applications related to order - product, manage, location.

Context mapping at the moment for 3 applications.



Product application has so many REST entities and controller has mapping like this
context is /product and controller mapping is /information and many others


Manage and location applications got controllers with mappings



 manage app context is /manage and controller is /user and many others  
location app context is /location and controller is /config and many others


I would like to achieve below mapping for 3 different springboot applications.

Desired mapping respectively to above one:



for product application context /order/{id}/product/ and controller is /information  
same for manage and location apps /order/{id}/manage
/order/{id}/location


Any help would be great. Appreciate your time.










share|improve this question
























  • I think only your @RequestMapping annotation is going to change with value field having order/{id} prefixed to it. Also I hope I understand your question correctly ?
    – rdj7
    Nov 22 at 17:29










  • @rdj7 thank you. I dont want each controller to have total context. I want context to be like order/{id}/product. Controller will have simple mapping like - /information for information controller inside product application.
    – dizzyintegration
    Nov 23 at 11:10










  • Sorry, I am little unclear about what you are asking, can you please edit your question so everyone understands clearly. May be you cab include some code clocks or some more details.
    – rdj7
    Nov 23 at 11:33










  • @rdj7 thanks for your time. just updated the question. Hope that makes bit more sense.
    – dizzyintegration
    Nov 23 at 11:57
















0














I have 3 different springboot REST applications related to order - product, manage, location.

Context mapping at the moment for 3 applications.



Product application has so many REST entities and controller has mapping like this
context is /product and controller mapping is /information and many others


Manage and location applications got controllers with mappings



 manage app context is /manage and controller is /user and many others  
location app context is /location and controller is /config and many others


I would like to achieve below mapping for 3 different springboot applications.

Desired mapping respectively to above one:



for product application context /order/{id}/product/ and controller is /information  
same for manage and location apps /order/{id}/manage
/order/{id}/location


Any help would be great. Appreciate your time.










share|improve this question
























  • I think only your @RequestMapping annotation is going to change with value field having order/{id} prefixed to it. Also I hope I understand your question correctly ?
    – rdj7
    Nov 22 at 17:29










  • @rdj7 thank you. I dont want each controller to have total context. I want context to be like order/{id}/product. Controller will have simple mapping like - /information for information controller inside product application.
    – dizzyintegration
    Nov 23 at 11:10










  • Sorry, I am little unclear about what you are asking, can you please edit your question so everyone understands clearly. May be you cab include some code clocks or some more details.
    – rdj7
    Nov 23 at 11:33










  • @rdj7 thanks for your time. just updated the question. Hope that makes bit more sense.
    – dizzyintegration
    Nov 23 at 11:57














0












0








0







I have 3 different springboot REST applications related to order - product, manage, location.

Context mapping at the moment for 3 applications.



Product application has so many REST entities and controller has mapping like this
context is /product and controller mapping is /information and many others


Manage and location applications got controllers with mappings



 manage app context is /manage and controller is /user and many others  
location app context is /location and controller is /config and many others


I would like to achieve below mapping for 3 different springboot applications.

Desired mapping respectively to above one:



for product application context /order/{id}/product/ and controller is /information  
same for manage and location apps /order/{id}/manage
/order/{id}/location


Any help would be great. Appreciate your time.










share|improve this question















I have 3 different springboot REST applications related to order - product, manage, location.

Context mapping at the moment for 3 applications.



Product application has so many REST entities and controller has mapping like this
context is /product and controller mapping is /information and many others


Manage and location applications got controllers with mappings



 manage app context is /manage and controller is /user and many others  
location app context is /location and controller is /config and many others


I would like to achieve below mapping for 3 different springboot applications.

Desired mapping respectively to above one:



for product application context /order/{id}/product/ and controller is /information  
same for manage and location apps /order/{id}/manage
/order/{id}/location


Any help would be great. Appreciate your time.







spring-boot






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 at 11:53

























asked Nov 22 at 12:30









dizzyintegration

11




11












  • I think only your @RequestMapping annotation is going to change with value field having order/{id} prefixed to it. Also I hope I understand your question correctly ?
    – rdj7
    Nov 22 at 17:29










  • @rdj7 thank you. I dont want each controller to have total context. I want context to be like order/{id}/product. Controller will have simple mapping like - /information for information controller inside product application.
    – dizzyintegration
    Nov 23 at 11:10










  • Sorry, I am little unclear about what you are asking, can you please edit your question so everyone understands clearly. May be you cab include some code clocks or some more details.
    – rdj7
    Nov 23 at 11:33










  • @rdj7 thanks for your time. just updated the question. Hope that makes bit more sense.
    – dizzyintegration
    Nov 23 at 11:57


















  • I think only your @RequestMapping annotation is going to change with value field having order/{id} prefixed to it. Also I hope I understand your question correctly ?
    – rdj7
    Nov 22 at 17:29










  • @rdj7 thank you. I dont want each controller to have total context. I want context to be like order/{id}/product. Controller will have simple mapping like - /information for information controller inside product application.
    – dizzyintegration
    Nov 23 at 11:10










  • Sorry, I am little unclear about what you are asking, can you please edit your question so everyone understands clearly. May be you cab include some code clocks or some more details.
    – rdj7
    Nov 23 at 11:33










  • @rdj7 thanks for your time. just updated the question. Hope that makes bit more sense.
    – dizzyintegration
    Nov 23 at 11:57
















I think only your @RequestMapping annotation is going to change with value field having order/{id} prefixed to it. Also I hope I understand your question correctly ?
– rdj7
Nov 22 at 17:29




I think only your @RequestMapping annotation is going to change with value field having order/{id} prefixed to it. Also I hope I understand your question correctly ?
– rdj7
Nov 22 at 17:29












@rdj7 thank you. I dont want each controller to have total context. I want context to be like order/{id}/product. Controller will have simple mapping like - /information for information controller inside product application.
– dizzyintegration
Nov 23 at 11:10




@rdj7 thank you. I dont want each controller to have total context. I want context to be like order/{id}/product. Controller will have simple mapping like - /information for information controller inside product application.
– dizzyintegration
Nov 23 at 11:10












Sorry, I am little unclear about what you are asking, can you please edit your question so everyone understands clearly. May be you cab include some code clocks or some more details.
– rdj7
Nov 23 at 11:33




Sorry, I am little unclear about what you are asking, can you please edit your question so everyone understands clearly. May be you cab include some code clocks or some more details.
– rdj7
Nov 23 at 11:33












@rdj7 thanks for your time. just updated the question. Hope that makes bit more sense.
– dizzyintegration
Nov 23 at 11:57




@rdj7 thanks for your time. just updated the question. Hope that makes bit more sense.
– dizzyintegration
Nov 23 at 11:57

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53431071%2fspringboot-rest-context-mapping-multiple-applications%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53431071%2fspringboot-rest-context-mapping-multiple-applications%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Berounka

Sphinx de Gizeh

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...