10-23-2019 5:29 PM - edited 02-04-2024 6:21 AM
Hi,
We have created a custom addon and created a controller on it. But when we are making a web service call from postman. Its returning 404 Not found. Its not able to find the URL. I have followed the following steps.
1. used the ant extgen command and yaddon template to create the custom addon(trainingaddon).
2. I have created a controller in acceleratoraddon/web/src location and added the controller base package in trainingaddon-web-spring.xml file
<context:component-scan base-package="com.training.trainingaddon.controllers"/>
controller:
@RequestMapping(value = "/oci/xml/setup", method = RequestMethod.POST)
@ResponseBody
public String handleSetUpRequest(@RequestBody OciSetupRequest reqObject)
{
}
3.We make a webservice call from postman, But it is not recognizing the URL(/oci/xml/setup).
Something is missing to recognize the controller with specified path. Can you please help me on this.
If provide the sample code will be appreciated.
Thanks in advance!!
i also tried addon concept for storefront customisation but it returns 404 for addon page path ;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.