Closed nicholas-davison closed 3 months ago
44
Added functionality to support including a user id query to get all posts function
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
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