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

Implement Blog Creation and Retrieval API Endpoints #2

Closed
ShaikHafiza opened this issue Oct 1, 2024 · 3 comments
Closed

Implement Blog Creation and Retrieval API Endpoints #2

ShaikHafiza opened this issue Oct 1, 2024 · 3 comments

Comments

@ShaikHafiza
Copy link

Overview: The current application is missing the necessary backend infrastructure to handle the creation and retrieval of blog posts. This issue focuses on building the backend functionality using Express.js to support the following operations:

Create a new blog post: Accept user input (blog title, content, author) and store it in a database.
Retrieve blog posts: Provide the ability to fetch individual posts by ID or a list of all posts.
Goals:

Implement an API endpoint (POST /api/blogs) that allows users to submit a new blog post.
Implement API endpoints (GET /api/blogs and GET /api/blogs/:id) to fetch either a list of all posts or a specific post based on its ID.
Technical Considerations:

Use Mongoose to define the blog post schema and interact with MongoDB for data persistence.
Implement input validation to ensure valid data is being submitted when creating a post.
Set up proper error handling for cases like missing posts or invalid input data.

@sudo-dpkg
Copy link
Owner

Assigned @ShaikHafiza .

Please make all the required changes and submit a detailed PR.

@shreyamaheshwari1
Copy link

@jinx-vi-0 can this be assigned to me too ? I can also implement it as it is still open.

Copy link

🎉 Congratulations @ShaikHafiza! Your issue has been successfully closed! Thanks for your contribution! If you enjoyed contributing, please consider giving us a ⭐ and following us for updates!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants