Improve api

master
Mohamed Rashd 3 years ago
parent fb2ab0963d
commit 097423b2b0

@ -149,7 +149,7 @@ public interface SPApplicationService {
Response getServiceProviders(@QueryParam("limit") Integer limit, @QueryParam("offset") Integer offset, Response getServiceProviders(@QueryParam("limit") Integer limit, @QueryParam("offset") Integer offset,
@PathParam("identity-server-id") int identityServerId); @PathParam("identity-server-id") int identityServerId);
@Path("/{identity-server-id}/service-provider/{service-provider-id}/applications") @Path("/{identity-server-id}/service-provider/{service-provider-id}/attach")
@POST @POST
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
@ApiOperation( @ApiOperation(
@ -170,7 +170,7 @@ public interface SPApplicationService {
/** /**
* This method is used to register an APIM application for tenant domain. * This method is used to register an APIM application for tenant domain.
*/ */
@Path("/{identity-server-id}/service-provider/{service-provider-id}/delete/applications") @Path("/{identity-server-id}/service-provider/{service-provider-id}/detach")
@POST @POST
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
@ApiOperation( @ApiOperation(

@ -98,7 +98,7 @@ public class SPApplicationServiceImpl implements SPApplicationService {
} }
} }
@Path("/{identity-server-id}/service-provider/{service-provider-id}/applications") @Path("/{identity-server-id}/service-provider/{service-provider-id}/attach")
@POST @POST
@Override @Override
public Response attachApps(@PathParam("identity-server-id") int identityServerId, public Response attachApps(@PathParam("identity-server-id") int identityServerId,
@ -116,7 +116,7 @@ public class SPApplicationServiceImpl implements SPApplicationService {
return Response.status(Response.Status.OK).build(); return Response.status(Response.Status.OK).build();
} }
@Path("/{identity-server-id}/service-provider/{service-provider-id}/delete/applications") @Path("/{identity-server-id}/service-provider/{service-provider-id}/detach")
@POST @POST
@Override @Override
public Response detachApps(@PathParam("identity-server-id") int identityServerId, public Response detachApps(@PathParam("identity-server-id") int identityServerId,

Loading…
Cancel
Save