We can access client via api endpoints and client will execute RPC in server and return the outputs in response
server will run in port 9000 in localhost and client will run in port 7000 in localhost
client will expose http://localhost:7000/vegetables/get/all endpoint to excute that function
client will expose http://localhost:7000/vegetables/get/pricePerKg?Name=Carrot endpoint to excute that function
client will expose http://localhost:7000/vegetables/get/availableAmount?Name=Carrot endpoint to excute that function
client will expose http://localhost:7000/vegetables/add?Name=Cabbage&PricePerKg=430&AvailableAmountOfKg=20 endpoint to excute that function
client will expose http://localhost:7000/vegetables/update?Name=Carrot&PricePerKg=430&AvailableAmountOfKg=20 endpoint to excute that function