Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334124 - [server] Project deletion should be DELETE rather than POST
Summary: [server] Project deletion should be DELETE rather than POST
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-12 10:27 EST by Szymon Brandys CLA
Modified: 2011-09-01 11:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.