-
GET All Articles
/articles
-
GET A Single Article
/articles/:id
-
POST Register an Account
/auth/register
-
POST Login
/auth/ogin
- GET All posts from author
/articles/author/:id
- POST Create an Article
/articles
- PATCH Update an Article created by you
/articles/:id
- DELETE An article created by you
/articles/:id
REGISTER
{
"first_name": "Emmanuel",
"last_name": "Doe",
"email": "[email protected]",
"password": "12345678"
}
LOGIN
{
"email": "[email protected]",
"password": "12345678"
}
Create Blog Article
{
"title": "My First Blog Post",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"tags": ["Lorem", "Ipsum", "Dolor"]
}
GET /articles
{
Filter By State:
<!-- Case insensitive -->
/articles?state=PUBLISHED
/articles?state=DRAFT
Pagination Queries:
/articles?limit=10
/articles?page=1
Ordering (default is "desc"):
/articles?read_count=asc
/articles?reading_time=asc
/articles?createdAt=asc
/articles?updatedAt=asc
}