cancel
Showing results for 
Search instead for 
Did you mean: 

Delete on Restful service returning 204

erictice
Champ in-the-making
Champ in-the-making
I am using the delete item restul service and it does appear to delete the item.  The strange part is, it returns a code of 204 - No Content.  Technically, after a delete that would be correct, but since I am expecting confirmation that it was successful, 200 would be more appropriate?  Does anyone know if this is what Alfresco intended?  Or if this is a bug in Labs 3.1?  Thank you in advance.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Sounds like a bug to me!

monomillo17
Champ in-the-making
Champ in-the-making
I am using the delete item restul service and it does appear to delete the item.  The strange part is, it returns a code of 204 - No Content.  Technically, after a delete that would be correct, but since I am expecting confirmation that it was successful, 200 would be more appropriate?  Does anyone know if this is what Alfresco intended?  Or if this is a bug in Labs 3.1?  Thank you in advance.

Hi, I have been trying to use this delete.item,  but don´t get it, in official documentation says something like this :

http://<host>:<port>/[<contextPath>/]/<servicePath>[/<scriptPath>][?<scriptArgs>]
host - name or address of server hosting the Web Script
port - port where Web Script is exposed on server
contextPath - path where application is deployed to, generally /alfresco
servicePath - path where Web Script service is mapped to, generally /service
scriptPath - path to Web Script (as defined by Web Script)
scriptArgs - arguments to pass to Web Script

It also says, that a 204 code return is ok and some other post says that too, so if you recive that code, then is working fine. I understand this service can delete an specific document version am i right?  if so… how it can be done? I have been trying this without success



http://localhost:8080/alfresco/service/api/path/d/d/versionStore/version2Store/a2572be0-e39c-4b9c-92...

The Web Script /alfresco/service/api/path/d/d/versionStore/version2Store/a2572be0-e39c-4b9c-925e-0018ab89190c has responded with a status of 404 - Not Found.

Using Alfresco Labs 3.0 stable - MySQL 5.0 - Glassfish 2.1 - JDK 1.6 u7 - Centos 5.2

Can you give me an example of how to use this? Smiley Sad

Thank you in advance.