Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect location url when a new post is added #18

Open
anton-balaniuc opened this issue Apr 12, 2021 · 0 comments
Open

Incorrect location url when a new post is added #18

anton-balaniuc opened this issue Apr 12, 2021 · 0 comments

Comments

@anton-balaniuc
Copy link

URI location = ServletUriComponentsBuilder.fromCurrentRequest().path("/{id}").buildAndExpand(post.getId())

hi @in28minutes,

Thanks a lot for the great course. I might be wrong, but it looks like the location header which is returned when a new post is added is incorrect. So the full url will be
/jpa/users/1/posts/5
However it looks like doesn't have and an endpoint to find post by an id, something like

@GetMapping("/jpa/users/{userId}/posts/{id}")

Best Regards,
Anton Balaniuc

srini2810 pushed a commit to srini2810/spring-microservices that referenced this issue Jun 15, 2022
…earch from Philo to develop

* commit 'c6c533784dac586697bdaa27767e519da5404a3b':
  PHILO Changes
  [ release-build-complete ] : incrementing development snapshot version
  gradle.properties edited online with Bitbucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant