Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334124

Summary: [server] Project deletion should be DELETE rather than POST
Product: [ECD] Orion Reporter: Szymon Brandys <Szymon.Brandys>
Component: ClientAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tomasz.zarna
Version: 0.2   
Target Milestone: 0.2   
Hardware: All   
OS: All   
Whiteboard:

Description Szymon Brandys CLA 2011-01-12 10:27:32 EST
Project deletion in WorkspaceServlet should be a DELETE request against the Location returned when the project is added to the workspace. I.e., the following should always work:

Perform POST to create a resource
Perform a DELETE on the Location in the POST response to delete the resource that was just created.

Note that for projects we have two "resources" on the server:

/workspace/<workspaceid>/<projectId>   - this resource represents a project being associated with a workspace. Deleting it will remove the project from the workspace.
/file/<projectId>  - this is the resource representing the contents of the project. Deleting here would delete the contents (not clear if we want to expose this capability right now)
Comment 1 John Arthorne CLA 2011-05-05 10:45:42 EDT
I'm working in this area right now, so I will take this.