Complete the code to define a hierarchical REST API path for accessing a user's posts.
GET /users/[1]/postsThe correct syntax for path parameters in REST APIs often uses a colon before the parameter name, like :userId.
Complete the code to define a nested resource path for accessing a specific comment on a post.
GET /posts/[1]/comments/[2]
The first parameter in the path should be :postId to specify the post and the second :commentId for the comment.
Fix the error in the hierarchical path to correctly access a user's specific order.
GET /users/[1]/orders/[2]
The first parameter should be :userId to specify the user in the path and the second :orderId for the order.
Fill both blanks to define a REST API path for accessing a specific chapter of a book.
GET /books/[1]/chapters/[2]
The path parameters should be :bookId for the book and :chapterId for the chapter.
Fill all three blanks to define a REST API path for accessing a specific episode of a season of a TV show.
GET /shows/[1]/seasons/[2]/episodes/[3]
The path parameters should be :showId, :seasonId, and :episodeId in that order.