Json based configuration to register routes and services in Kong

Hi team,
I am trying to register my routes and services in kong. I already know the curl based method to register them as shown in the doc here Services and Routes - Kong Gateway | Kong Docs.

However, does anyone know any file based method (possibly json) so that all my route and service configuration are loaded from this file and I don’t have to manually call curls.

Found the answer. This is already solved by