Hi Peter

This looks like a documentation error.

https://jira.duraspace.org/browse/FCREPO-742 was implemented to address
determining whether or not a relationship was actually deleted: with a 200
OK status code in both cases, and the body of the response returning "true"
or "false" to indicate whether or not a relationship was actually deleted.

Though arguably a 404 response may be more appropriate if the relationship
could not be deleted because it did not exist.

I have updated the documentation to reflect the current behaviour.

Regards
Steve

> -----Original Message-----
> From: Peter C. Gorman [mailto:[email protected]] 
> Sent: 27 January 2011 16:57
> To: [email protected]
> Subject: [fcrepo-user] HTTP response code for 
> purgeRelationship (REST API)
> 
> 
> Hello,
> 
> I've been working with the REST API to add and remove relationships 
> in RELS-EXT, and have found a discrepancy between the REST API 
> documentation and Fedora's behavior (3.4, 3.4.2).
> 
> The REST API documentation at 
> https://wiki.duraspace.org/display/FCR30/REST+API#RESTAPI-purg
eRelationship 
says that the expected HTTP response for purgeRelationship is 204. 
However, I get a 200 response code whether the purge is successful or 
not. Is this the wrong behavior, or is the documentation in error?

Thanks,
-- 
_______________________________
Peter C. Gorman
Head, University of Wisconsin Digital Collections Center
218 Memorial Library
Madison, WI 53706
[email protected]
(608) 265-5291


----------------------------------------------------------------------------
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to