@selcukgiray You could follow the examples in the JSON:API specification, where you have routes for interacting with relations of resources.
So, given your example, if a user can have many posts, then you would have dedicated to-many relationship endpoint to query those related posts:
GET /users/{user}/relationships/posts
If a post can only be authored by only one user, then you’d have a to-one relationship endpoint to get a post’s author:
GET /posts/{post}/relationships/author
Where the author may just be a User resource, but in the context of a post, you may call that user an “author” rather than just “user”.