Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anand2312/utilitybot-misc-backends
https://github.com/anand2312/utilitybot-misc-backends
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/anand2312/utilitybot-misc-backends
- Owner: anand2312
- License: apache-2.0
- Created: 2022-01-26T17:41:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-27T07:17:11.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T15:15:20.687Z (2 months ago)
- Language: Rust
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# utilitybot miscellaneous backends
This worker does random stuff for [utilitybot](https://github.com/anand2312/utilitybot)
I just wanted to try Workers KV, and Workers with Rust, and also avoid having to set up a database for the bot rn# API Documentation
All API requests need the API-KEY to be passed as a header.## GET `/rolenames`
### Returns:
Status code 200
#### JSON
```
{"rolenames": String[]}
```## POST `/rolenames`
### JSON Body:
```
rolename: String
added_by: Discord ID (String)
```
### Returns:
Status code 200 (no body)## DELETE `/rolenames`
### JSON Body:
```
rolename: String (the name to be deleted)
```
### Returns:
Status code 200 (no body)