I have an API (POST) and I am getting the below response from Postman. What can be the issue?
Views
Replies
Total Likes
Hello @goyalkritika
Are you sure the URL used is correct?
A URL "/content/spartacus-endpoint/getNavigationData" seems more like a content to be created in AEM. It doesn't seem like a Servlet URL accepting POST request.
It is a resource type servlet and /content/... is the endpoint. It is correct only.
Can I know what is the purpose of the API ? are you using any service user to write or create data on jcr ?
If yes, Please check the permissions of that service user
Hi @goyalkritika
Are you trying in Author or Publish?
Can you share how do you hit API from postman and from browser?
@goyalkritika Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies