API Deployment on Mule CloudHub in Mule 4
CloudHub is the cloud server facility by Mulesoft. In the free edition, we can deploy our API on CloudHub for some days. For CloudHub deployment, we need to make an API in Anypoint Platform and export it into jar file.
Here is an API that prints Hello Himanshu in the output.
Let's export the API in the form of .jar to deploy it in Anypoint Platform.
To convert into a jar go to:
Right-click on project > export

Then,go to:
Mule > Anypoint Studio project to Mule Deployable Archive > next > finish.
Go to Anypoint Platform > Runtime Manager > Deploy Application
Now,
Give Application name,
Select runtime,
upload application jar file, which we have exported.
Now click on Deploy Application.
Once the application is deployed, the status becomes started in runtime manager
Now click on the application name, you can see the cloud hub URL there:
Use this endpoint suffixed by the resource that you have given in HTTP listener.
You might like this: