day-cohort-70 / rare-api-rare-bear-team-4

rare-api-rare-bear-team-4 created by GitHub Classroom
0 stars 0 forks source link

Post post2 #69

Closed novofeels closed 3 months ago

novofeels commented 3 months ago

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