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

Feature/user post list #70

Closed nicholas-davison closed 3 months ago

nicholas-davison commented 3 months ago

Ticket:

44

What Changed:

Added functionality to support including a user id query to get all posts function

Testing Steps:

fetch branch, make request to postman in following formats:

To confirm get all posts is still working: http://localhost:8088/posts

to confirm getting posts by individual users: http://localhost:8088/posts?userId=1 (try userId=2, or 3, or whaterver as well)

to confirm getting expanded posts by individual users: http://localhost:8088/posts?userId=3&_expand=user&_expand=category