This documentation provides details on the endpoints and functionalities of the Blog API. The API allows users to perform actions related to authentication and blog post management.
All API endpoints are relative to the base URL: http://localhost:5000/api/v1
- Endpoint:
/users/register
- Method:
POST
- Request Body:
{ "email": "[email protected]", "password": "SecurePassword123", "name": "John Doe" }
- Endpoint:
/users/login
- Method:
POST
- Request Body:
{ "email": "[email protected]", "password": "SecurePassword123" }
- Endpoint:
/users/logout
- Method:
POST
- Request Body: (Empty)
- Endpoint:
/posts
- Method:
POST
- Authentication: No authentication required
- Request Body:
{ "title": "Best Practices in Software Development", "content": "Explore the latest trends and best practices in software development." }
- Endpoint:
/posts/10
(Replace 10 with the actual post ID) - Method:
PATCH
- Request Body:
{ "title": "Effective Project Management Strategies", "content": "Learn about proven project management strategies for successful outcomes." }
- Endpoint:
/posts/10
(Replace 10 with the actual post ID) - Method:
DELETE
- Request Body: (Empty)
- Response: (No specific response provided in the collection)
- Endpoint:
/posts
- Method:
GET
- Query Parameters:
limit
(disabled)offset
(disabled)search
(disabled)
- Endpoint:
/posts/mine
- Method:
GET
- Query Parameters:
limit
(disabled)offset
(disabled)search
(disabled)
- Endpoint:
/posts/10
(Replace 10 with the actual post ID) - Method:
GET
endPoint
: Base URL of the API (http://localhost:5000/api/v1)
- Make sure to replace placeholders (such as post IDs) with actual values when making requests.
- Refer to the Postman documentation for more information on using collections.