Hello All,
I have created the one simple http based Breeze snap-in using the 'Avaya Breeze Snap in Development guide Release' documents.
My sample snap-in just returning the 'Hello World'. Below are the two files with code which is present in my snap-in code:
1) MyResource
package com.avaya.testservice;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
/*
* This class is needed if you are trying to write a JAX-RS based web service. You can enhance this as needed for the application.
*
* For applications which provide call related features only and web service is not required, remove this class.
*
*/
@Path("/myResource")
public class MyResource
{
@GET
public String doGet()
{
return "Hello World";
}
}
2) MyApplication
package com.avaya.testservice;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
/*
* This class is needed if you are trying to write a JAX-RS based web service. You can enhance this as needed for the application.
*
* For applications which provide call related features only and web service is not required, remove this class.
*
*/
@ApplicationPath("/ws")
public class MyApplication extends Application
{
//Don't need to implement getClasses
}
After hitting the below url in the browser, I am getting the ' 400 Bad request' error.
https://<Avaya Breeze_FQDN>/services/TestingService/ws/myResource
I have followed all the steps from dev guide for creating sample application. But still getting the same error. I am not able to find out why this error is coming.
Can you please guide me how to solve this error.
Thanks in advance