class RelationshipController {

    @DeleteMapping( value = "/{id}" )
    public void deleteRelationship( @PathVariable String id, HttpServletRequest request, HttpServletResponse response
    )
        throws WebMessageException
    {
        Relationship relationship = relationshipService.getRelationshipByUid( id );

        if ( relationship == null )
        {
            throw new WebMessageException( notFound( "No relationship with id '" + id + "' was found." ) );
        }

        webMessageService.send( WebMessageUtils.importSummary( relationshipService.deleteRelationship( id ) ), response,
            request );
    }

    public  RelationshipController( RelationshipService relationshipService,
        TrackedEntityInstanceService trackedEntityInstanceService, ProgramInstanceService programInstanceService,
        ProgramStageInstanceService programStageInstanceService, WebMessageService webMessageService );

}