Expand my Community achievements bar.

Expose Sling Servlet as Rest API

Avatar

Level 2

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

3 Replies

Avatar

Community Advisor

@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

Avatar

Level 2

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