Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Implement Bots #66

Merged
merged 14 commits into from
Nov 20, 2021
Merged

Implement Bots #66

merged 14 commits into from
Nov 20, 2021

Conversation

hydrostaticcog
Copy link
Member

This PR aims to implement bots.

Bot are normal users with the BOT_ACCOUNT flag. A new table is added to the database to track who owns which bot.

The following endpoints are added:
POST /users/{user_id}/bots - Create a bot
PATCH /users/{user_id}/bots/{bot_id} - Edit a bot
DELETE /users/{user_id}/bots/{bot_id - Delete a bot
POST /users/{user_id}/bots/{bot_id/auth - Generates a token for the bot user

Bot User objects should be fetched through the normal get user endpoint.

@hydrostaticcog hydrostaticcog added enhancement New feature or request API labels Nov 20, 2021
@hydrostaticcog hydrostaticcog requested a review from a team as a code owner November 20, 2021 19:06
@tazz4843 tazz4843 merged commit 33146f9 into develop Nov 20, 2021
@tazz4843 tazz4843 deleted the feature/bot-impl branch November 22, 2021 00:40
@hydrostaticcog hydrostaticcog self-assigned this Dec 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API enhancement New feature or request
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

2 participants