Okta Integration with spring boot for only few api's

Hello everyone,
Am trying to integrate okta with spring boot 2 application.
My spring boot application has only rest api’s.
Say I have 5 rest api’s, I want okta to be integrated only for 3 apis and the other 2 should not.
Has anyone tried this way of intergrating okta with spring boot.
Please let me know.
Thanks in advance,