Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to bypass Interceptors for a specific resource in a Ballerina Service?

I have a Ballerina HTTP service with several interceptors added. This service has multiple resources, and for a specific resource, I want to bypass the interceptors.

Is there a way to achieve this without creating a new service to exclude those interceptors?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The Ballerina HTTP interceptors are designed to be executed for the entire service. So currently it is not possible to selectively engage interceptors based on the resources.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading