Expose Sling Servlet as Rest API | Community
Skip to main content
March 3, 2023

Expose Sling Servlet as Rest API

  • March 3, 2023
  • 2 replies
  • 1073 views

Hi All,

 

Please can anyone confirm if we can expose the resourcetype based post servlet as a rest API to a system.

  • In case we are exposing the servlet will it create issues when there are multiple request hitting the Servlet at the same time.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

SivakumarKanoori
Community Advisor
Community Advisor
March 6, 2023

@aditya-singh :

What is the data you want to expose ? 

Because , we can expose or export data using the Sling models instead of Sling servlet. 

 

and if multiple requests hitting the servlet or Sling model exporter , there will be no issues.

 

Thanks 

Siva

 

Thanks,Siva
March 6, 2023

Hi @sivakumarkanoori ,

 

We are trying to use the servlet as rest end point to post the data from third party and then create PDF with the input stream posted by third party.

 

Therfore, we want to clarify whether hitting the servlet with multiple request can bounce some of the request.

 

thanks