fixed setCalledMethod paths
This commit is contained in:
parent
fdead3cb7d
commit
15c4e1501f
|
@ -93,7 +93,7 @@ public class ProfiledDocuments {
|
|||
|
||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + profileID);
|
||||
CalledMethodHandler.setCalledMethod(path + "/getConfiguration");
|
||||
CalledMethodHandler.setCalledMethod(path + "/"+InterfaceConstants.Methods.CONFIGURATION_PATH);
|
||||
|
||||
return new GuardedMethod<Configuration>() {
|
||||
|
||||
|
@ -165,7 +165,7 @@ public class ProfiledDocuments {
|
|||
|
||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.PUT,
|
||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||
CalledMethodHandler.setCalledMethod(path + "/update/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||
CalledMethodHandler.setCalledMethod(path + "/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||
|
||||
Project theUpdatedProject = new GuardedMethod<Project>() {
|
||||
@Override
|
||||
|
@ -210,7 +210,7 @@ public class ProfiledDocuments {
|
|||
|
||||
String path = CalledMethodHandler.buildCalledResource("PATCH",
|
||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||
CalledMethodHandler.setCalledMethod(path + "/patch/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||
CalledMethodHandler.setCalledMethod(path + "/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||
|
||||
return new GuardedMethod<Project>() {
|
||||
@Override
|
||||
|
@ -237,7 +237,7 @@ public class ProfiledDocuments {
|
|||
|
||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.DELETE,
|
||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||
CalledMethodHandler.setCalledMethod(path + "/delete/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||
CalledMethodHandler.setCalledMethod(path + "/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||
|
||||
Boolean deleted = new GuardedMethod<Boolean>() {
|
||||
@Override
|
||||
|
@ -453,7 +453,7 @@ public class ProfiledDocuments {
|
|||
|
||||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/list");
|
||||
CalledMethodHandler.setCalledMethod(pathCalledResource);
|
||||
|
||||
return new GuardedMethod<Iterable<?>>() {
|
||||
protected Iterable<?> run() throws Exception, WebApplicationException {
|
||||
|
@ -477,7 +477,7 @@ public class ProfiledDocuments {
|
|||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||
CalledMethodHandler
|
||||
.setCalledMethod(pathCalledResource + "/getById/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||
.setCalledMethod(pathCalledResource + "/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||
|
||||
return new GuardedMethod<Project>() {
|
||||
@Override
|
||||
|
@ -557,7 +557,7 @@ public class ProfiledDocuments {
|
|||
|
||||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/getRelationshipChain/" + "{"
|
||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/{"
|
||||
+ InterfaceConstants.Methods.RELATIONSHIP + "}/{" + InterfaceConstants.Parameters.PROJECT_ID + "}"
|
||||
+ "/{" + InterfaceConstants.Parameters.RELATIONSHIP_ID + "}");
|
||||
|
||||
|
@ -590,7 +590,7 @@ public class ProfiledDocuments {
|
|||
|
||||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.PUT,
|
||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/setRelation/" + "{"
|
||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/{"
|
||||
+ InterfaceConstants.Methods.RELATIONSHIP + "}/{" + InterfaceConstants.Parameters.PROJECT_ID + "}"
|
||||
+ "/{" + InterfaceConstants.Parameters.RELATIONSHIP_ID + "}");
|
||||
|
||||
|
@ -630,7 +630,7 @@ public class ProfiledDocuments {
|
|||
|
||||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.DELETE,
|
||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/deleteRelation/" + "{"
|
||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/{"
|
||||
+ InterfaceConstants.Methods.RELATIONSHIP + "}/{" + InterfaceConstants.Parameters.PROJECT_ID + "}"
|
||||
+ "/{" + InterfaceConstants.Parameters.RELATIONSHIP_ID + "}");
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ public class UseCaseDescriptors {
|
|||
UseCaseDescriptor d) {
|
||||
|
||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.PUT, "/" + InterfaceConstants.Methods.UCD);
|
||||
CalledMethodHandler.setCalledMethod(path + "/update/" + profileId);
|
||||
CalledMethodHandler.setCalledMethod(path + "/" + profileId);
|
||||
|
||||
return new GuardedMethod<UseCaseDescriptor>() {
|
||||
@Override
|
||||
|
@ -97,7 +97,7 @@ public class UseCaseDescriptors {
|
|||
@DefaultValue("false") @QueryParam(InterfaceConstants.Parameters.FORCE) Boolean force) {
|
||||
|
||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.DELETE, "/" + InterfaceConstants.Methods.UCD);
|
||||
CalledMethodHandler.setCalledMethod(path + "/delete/"+id);
|
||||
CalledMethodHandler.setCalledMethod(path + "/"+id);
|
||||
|
||||
return new GuardedMethod<Boolean>() {
|
||||
@Override
|
||||
|
@ -116,7 +116,7 @@ public class UseCaseDescriptors {
|
|||
public UseCaseDescriptor getById(@PathParam(InterfaceConstants.Parameters.UCID) String id) {
|
||||
|
||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.GET, "/" + InterfaceConstants.Methods.UCD);
|
||||
CalledMethodHandler.setCalledMethod(path + "/getById/" + id);
|
||||
CalledMethodHandler.setCalledMethod(path + "/"+ id);
|
||||
|
||||
return new GuardedMethod<UseCaseDescriptor>() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue