1. Amit Gawane
  2. PowerServer
  3. Thursday, 24 March 2022 19:54 PM UTC

We plan to migrate a PowerBuilder classic application to PowerServer 2021. Once migrated, can PowerServer 2021 REST API's be called from a non-PowerBuilder application? 

Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 24 March 2022 22:29 PM UTC
  2. PowerServer
  3. # Permalink
The swagger docs are for the internal APIs... not for retrieving/updating data from/to the deployed DataWindows.
Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 24 March 2022 20:54 PM UTC
  2. PowerServer
  3. # 1

Hi Amit;

  You can use "http://localhost:5008/swagger/index.html" in your web browser when the PS2021 server is running on your developer machine to get the documentation on the RESTAPI's that the PS Project generated plus the Built-in ones. Just replace port 5008 in my URL example with the port that you are using for your PS2021 server. Also, makes sure that the Web Browser & PS2021 server are running locally on your development machine.

  Now you can use the API documentation to allow other App's to call any of those RESTFul API's.  HTH

Regards ... Chris

Comment
There are no comments made yet.
Amit Gawane Accepted Answer Pending Moderation
  1. Thursday, 24 March 2022 22:39 PM UTC
  2. PowerServer
  3. # 2

Is there a way to generate swagger documentation for the retrieve/update calls? 

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 24 March 2022 22:58 PM UTC
We will check with engineering and get back to you.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Friday, 25 March 2022 03:53 AM UTC
Engineering suggests not to reuse the generated C# project for non-PB apps. For your non-PB projects, you should create completely separate C# project from your existing DataWindows.

There are some tutorials and other tech resources how to do this at the bottom of this page: https://www.appeon.com/products/powerbuilder/dotnet-datastore-rest-apis

There is also lots of Elevate sessions about this: https://www.youtube.com/playlist?list=PL2Eo5uXB4T3nendKrWoSmPeX92U8JbgyP
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.