dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33665
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17223: add back HttpStatus.NO_CONTENT for enrollment delete, cancel, complete
------------------------------------------------------------
revno: 17223
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-10-23 14:58:00 +0700
message:
add back HttpStatus.NO_CONTENT for enrollment delete, cancel, complete
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/event/EnrollmentController.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/event/EnrollmentController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/event/EnrollmentController.java 2014-10-21 13:31:06 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/event/EnrollmentController.java 2014-10-23 07:58:00 +0000
@@ -248,6 +248,7 @@
@RequestMapping( value = "/{id}/cancelled", method = RequestMethod.PUT )
@PreAuthorize( "hasRole('ALL') or hasRole('F_PROGRAM_UNENROLLMENT')" )
+ @ResponseStatus( HttpStatus.NO_CONTENT )
public void cancelEnrollment( @PathVariable String id ) throws NotFoundException
{
Enrollment enrollment = getEnrollment( id );
@@ -257,6 +258,7 @@
@RequestMapping( value = "/{id}/completed", method = RequestMethod.PUT )
@PreAuthorize( "hasRole('ALL') or hasRole('F_PROGRAM_UNENROLLMENT')" )
+ @ResponseStatus( HttpStatus.NO_CONTENT )
public void completedEnrollment( @PathVariable String id ) throws NotFoundException
{
Enrollment enrollment = getEnrollment( id );
@@ -270,6 +272,7 @@
@RequestMapping( value = "/{id}", method = RequestMethod.DELETE )
@PreAuthorize( "hasRole('ALL') or hasRole('F_PROGRAM_UNENROLLMENT')" )
+ @ResponseStatus( HttpStatus.NO_CONTENT )
public void deleteEnrollment( @PathVariable String id ) throws NotFoundException
{
Enrollment enrollment = getEnrollment( id );