1. ? ?
  2. PowerServer
  3. Friday, 17 February 2023 06:33 AM UTC

我想提供个接口给别人调用,获取到他的数据,

如: http://*****    接口地址,比如有定义3个参数: message,  iphone,  remark  

 

我生成服务端的这个接口,他们用post调用这接口推送数据过来,我接收数据

 

请问怎样实现这样的操作,能提供下例子参考吗,谢谢

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Monday, 20 February 2023 02:35 AM UTC
  2. PowerServer
  3. # 1

Hi,

PowerServer can help you to deploy your PowerBuilder Apps to the Cloud automatically. But it's not designed to help you to expose custom CRUD Web APIs.

You can learn from this .NET DataStore CURD tutorial to create your Web API via SnapDevelop:

https://docs.appeon.com/dwconverter2022/CRUD_Operations_with_Generic_.NET_DataStore/index.html

Regards, Logan

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Saturday, 18 February 2023 13:58 PM UTC
  2. PowerServer
  3. # 2
Comment
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Saturday, 18 February 2023 11:36 AM UTC
  2. PowerServer
  3. # 3

那 pb 怎样写 rest api 呢,有例子吗,这样才能调用,别的语言也能调用

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 17 February 2023 18:08 PM UTC
  2. PowerServer
  3. # 4

Hi,

If you create a rest api, you can use the powerbuilder httpclient object to call it.

regards

Comment
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.