feat: adding resource write endpoints (#30)

This commit is contained in:
paranarimasu authored and GitHub committed 2022-06-11 09:34:50 -05:00
1 parent 73145b6ad2
commit 16aefdf447
7 files changed
+369 -114

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
---
title: Resource Force Delete
---
<Block>
# Resource Force Delete Endpoint
The resource force delete endpoint hard deletes an external resource and returns a confirmation message.
For example, the `/api/forceDelete/resource/1083` endpoint will hard delete the MyAnimeList resource for the Bakemonogatari anime and return a confirmation message.
## URL
```sh
DELETE /api/forceDelete/resource/{id}
```
## Authentication
**Required Permission**: force delete external resource
**Roles with Permission**: Admin
## Parameters
None
## Response
```json
{
message: "The ExternalResource 'https://myanimelist.net/anime/5081/' was deleted.",
}
```
<Example>
<CURL>
```bash
curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/forceDelete/resource/1083
```
</CURL>
</Example>
</Block>