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

[Board] Add authed endpoint to create a Thread #94

Closed
Xazin opened this issue Dec 7, 2022 · 0 comments
Closed

[Board] Add authed endpoint to create a Thread #94

Xazin opened this issue Dec 7, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@Xazin
Copy link
Member

Xazin commented Dec 7, 2022

We will need an endpoint to create threads, the endpoint must require authentication.

The endpoint will take (and of course have the user from the token):

  • Forum ID (Where to post the thread)
  • Prefix ID (Optional)
  • Subject
  • Message

The task also includes creating a command CreateThreadCommand, that will require these validations:

  1. Validate the user can create threads in the forum (fetch forum permission based on forumId and the users role)

The command should take the information received through the endpoint as arguments, and also require a User!

We will add support for creating polls etc. at a later point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants