Closed novofeels closed 3 months ago
39
post_post function added
added image_url to get_all_posts function
make a post request to
http://localhost:8088/posts
with this as your body
{ "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:
39
What Changed:
post_post function added
added image_url to get_all_posts function
Testing Steps:
make a post request to
http://localhost:8088/posts
with this as your body
{ "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 }