import ballerina/http; + @http:ServiceConfig { + basePath: "/api" + } service hello on new http:Listener(9090) { + @http:ResourceConfig { + methods: ["POST"], + path: "/say" + } resource function sayHello(http:Caller caller, http:Request request) { http:Response response = new; response.setTextPayload("Hello Ballerina!"); _ = caller -> respond(response); } }