Project

Profile

Help

Issue #3073

closed

Can't remove content from a repository

Added by daviddavis over 6 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Sprint 27
Quarter:

Description

We have an api endpoint to remove content from a repository at /api/v3/repositorycontents/{id}/.

However, we don't expose the repo content id. For example, here's the list request:

$ http http://localhost:8000/api/v3/repositorycontents/
HTTP/1.0 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 200
Content-Type: application/json
Date: Mon, 16 Oct 2017 19:09:20 GMT
Server: WSGIServer/0.2 CPython/3.5.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "next": null,
    "previous": null,
    "results": [
        {
            "content": "http://localhost:8000/api/v3/content/example/1607fef2-d18b-4983-bfec-4fc2fc0ac492/",
            "repository": "http://localhost:8000/api/v3/repositories/foo/"
        }
    ]
}

Therefore, it's impossible to remove content from a repo.

Also available in: Atom PDF