Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for deleting a repo #2

Open
anandology opened this issue Mar 29, 2023 · 2 comments
Open

API for deleting a repo #2

anandology opened this issue Mar 29, 2023 · 2 comments
Assignees

Comments

@anandology
Copy link
Member

An API user should be able to delete a repo using the REST API.

DELETE /api/repos/abcd1234
---
204 No Content

If the requested repo is not available, it should fail with 404.

DELETE /api/repos/abcd1234-bad-repo
---
404 Not Found
@anandology anandology self-assigned this Mar 29, 2023
@anandology
Copy link
Member Author

Should there be a body when status is 404 Not Found?

@nikochiko
Copy link
Contributor

This will be used in capstone. The API currently responds with 200 and doesn't actually perform the delete.

This doesn't break the behaviour in capstone though, only lets extra unused repositories sit with gitto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants