added image_url to return of get all post function
added post_post function in post.py
Testing Steps:
post this object with postman
{
"user_id": 1,
"category_id": 2,
"title": "f'in post title",
"publication_date": "2024-05-29",
"image_url": "http://example.com/example-image.jpg",
"content": "This is the content of the example post.",
"approved": 1
}
Ticket:
What Changed:
added image_url to return of get all post function
added post_post function in post.py
Testing Steps:
post this object with postman
{ "user_id": 1, "category_id": 2, "title": "f'in post title", "publication_date": "2024-05-29", "image_url": "http://example.com/example-image.jpg", "content": "This is the content of the example post.", "approved": 1 }
to
http://localhost:8088/posts