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

FEAT: Creating a Blog Post #625

Open
Code-Mistress opened this issue Aug 24, 2024 · 0 comments
Open

FEAT: Creating a Blog Post #625

Code-Mistress opened this issue Aug 24, 2024 · 0 comments
Assignees

Comments

@Code-Mistress
Copy link
Collaborator

Description

Develop an API endpoint that allows only a super admin to create a blog post.

Purpose

The purpose of the endpoint is for a super admin to be able to create a blog post.

Acceptance Criteria

  • The endpoint allows only a super admin to create a blog post.
  • A valid token with the super admin role is supplied to the Authorization header.
  • If no Authorization header is supplied or an invalid token is supplied, the error should return a status code of 401.
  • If the token does not have the admin role, the error should return a status code of 403.
  • Returns a 201 Created status code and the correct response body when the blog is created successfully.
@Code-Mistress Code-Mistress self-assigned this Aug 24, 2024
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

1 participant