Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

View API docs in Swagger UI – PB Docs 2022 – PowerBuilder Library

View API docs in Swagger UI – PB Docs 2022

View API docs in Swagger UI

The documentation for PowerServer Management APIs is exposed
using Swagger
UI
. Each API is described with the operations (GET, POST, etc.)
and the operation parameters; and developers can directly test the API
from Swagger UI.

To view the API documentation in Swagger UI, run the ServerAPIs project from the SnapDevelop IDE (by
clicking Run in the toolbar).

ps_tutorial_134-1.png

The Swagger UI for the API documentation will be launched
automatically in the Web browser. However, the Swagger UI may not be
successfully loaded until the ServerAPIs project completes all the startup
processes. You may see Swagger UI refresh a few times before the API
documentation is successfully loaded; or you may need to refresh the
browser manually to load the API documentation.

The URL for accessing Swagger UI in PowerServer is:
http://{host}:{port}/PowerServer/index.html, for example,
http://localhost:5091/PowerServer/index.html.

ps_tutorial_134.png

By expanding the API, you can view the details of the API and
test the API (by clicking the Try it
out
button on the top right corner).

ps_tutorial_135.png

For example, expand /api/Application/LoadOne/{appName}, and then
click Try it out.

ps_tutorial_135_1.png

Input the application name (for example, “salesdemo_cloud”) as
the value of appName, and then click Execute. If execution is successful, the status
code 200 and the response body (that contains the application
settings) will be displayed.

ps_tutorial_135_2.png


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x