For quick running and testing purpose, you can start the Web APIs from the PowerBuilder IDE.
After you build & deploy the PowerServer project to the server (Kestrel or IIS), you can start the PowerServer Web APIs by clicking the Run Project button in the IDE toolbar. The Web API URL to run is based on the site URL specified in the project painter.
-
When the project is deployed to the local Kestrel server, the Run Project button will first start the Web APIs with the local Kestrel server and then run the installable cloud app. For detailed instructions, refer to "Hosting Web APIs in Kestrel > Hosting environment: Development".
-
When the project is deployed to the IIS server, the Run Project button will run the installable cloud app (and the corresponding Web APIs will be started by IIS automatically).
However, in the production environment and for optimal runtime performance, you should publish Web APIs to the dedicated server, such as Kestrel (with or without a reverse proxy), IIS, Kubernetes, Docker etc.
For instructions, refer to Hosting Web APIs in Kestrel > Hosting environment: Production, Hosting Web APIs in Docker Containers, Hosting Web APIs in IIS, Deploying installable cloud apps to Kubernetes, Publishing PowerServer Projects to Azure App Service, and Publishing PowerServer Projects to Azure Container Instances.