REST Server Sample Update · KcsDev1982/sunbelt-plb-samples@ce2f6a7 · GitHub
Skip to content

Commit ce2f6a7

Browse files
committed
REST Server Sample Update
Update the rest server samples for FCGI and version 10.8 features
1 parent d6d4fa6 commit ce2f6a7

21 files changed

Lines changed: 2303 additions & 329 deletions
33.4 KB
Binary file not shown.

rest_server/phonefcgi.pls

Lines changed: 412 additions & 0 deletions
Large diffs are not rendered by default.

rest_server/phonemsg.pls

Lines changed: 231 additions & 312 deletions
Large diffs are not rendered by default.

rest_server/phonemsg.prj

Lines changed: 27 additions & 3 deletions

rest_server/plbwebsrv_rest.ini

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Version]
2-
VERSION=10.6A
2+
VERSION=10.8A
33
PRODUCT=PWSWIN
44

55
[Environment]
@@ -9,13 +9,13 @@ PLBDBG_LOGON=127.0.0.1
99
#PLB_DEBUG=OND4
1010
#
1111
PLB_TERM=ansi
12-
PLB_SYSTEM=C:\Sunbelt\plbwebsrv.106A\code\
13-
PLB_PATH=C:\Sunbelt\plbwebsrv.106A\code;C:\Sunbelt\plbwebsrv.106A\demo;C:\Sunbelt\plbwebsrv.106A\demo\programs
12+
PLB_SYSTEM=C:\Sunbelt\plbwebsrv.108A\code\
13+
PLB_PATH=C:\Sunbelt\plbwebsrv.108A\code;C:\Sunbelt\plbwebsrv.108A\demo;C:\Sunbelt\plbwebsrv.108A\demo\programs
1414
PLBWIN_WINHIDE=1
1515
#
16-
PLBWEB_LOGNAME=C:\Sunbelt\plbwebsrv.106A\code\logs\pwslocal_@D_@T.log
16+
PLBWEB_LOGNAME=C:\Sunbelt\plbwebsrv.108A\code\logs\pwslocal_@D_@T.log
1717
PLBWEB_LOGMAX=20000
18-
PLBWEB_ROOT=C:\Sunbelt\plbwebsrv.106A\http_root
18+
PLBWEB_ROOT=C:\Sunbelt\plbwebsrv.108A\http_root
1919

2020
######################################################
2121
# The 'PLBWEB_CGI_INFODIR' keyword can be assigned
@@ -30,7 +30,19 @@ PLBWEB_ROOT=C:\Sunbelt\plbwebsrv.106A\http_root
3030
# However, the PLB runtime DOES delete any CGI file
3131
# that is used.
3232
#
33-
PLBWEB_CGI_INFODIR=C:\Sunbelt\plbwebsrv.106A\code\z
33+
PLBWEB_CGI_INFODIR=C:\Sunbelt\plbwebsrv.108A\code\z
34+
#
35+
######################################################
36+
# REST API Error Levels returned.
37+
#
38+
# Keyword Not Used ---> ONLY ---> 500 Internal Server
39+
# Keyword Values
40+
#
41+
# 0 ---> Same as default keyword not used
42+
# 1 ---> Basic REST API runtime information for untrapped errors
43+
# 2 ---> All available runtime information for untrapped errors.
44+
#
45+
#PLBWEB_CGI_ERRLEVEL=1
3446
#
3547
######################################################
3648
# The configuration keywords found in this paragraph are
@@ -43,12 +55,29 @@ PLBWEB_CGI_INFODIR=C:\Sunbelt\plbwebsrv.106A\code\z
4355
# PLB (Unix).
4456
#
4557
PLBWEB_REST_BASEURL01=MyServices/
46-
PLBWEB_REST_CMDLINE01=c:\sunbelt\plbwin.106A\code\plbwin -i c:\sunbelt\plbwebsrv.106A\code\plbwin_rest.ini -h %s %s
58+
PLBWEB_REST_CMDLINE01=c:\sunbelt\plbwin.108A\code\plbwin -i c:\sunbelt\plbwebsrv.108A\code\plbwin_rest.ini -h %s %s
4759
PLBWEB_REST_USE_ENV01=ON
4860
#
4961
######################################################
50-
51-
62+
# 'REST' API FastCgi Support
63+
#
64+
# The configuration keywords found in this paragraph are
65+
# used to setup a PLB Rest Service. There can be up to
66+
# 99 Rest Service definitions supported by the PWS server.
67+
#
68+
# Please note:
69+
# 1. The ONLY PLB runtimes which can be used to execute
70+
# a Rest Service program are PLBWIN, PLBNET, or
71+
# PLB (Unix).
72+
####
73+
PLBWEB_REST_SSL02=OFF
74+
PLBWEB_REST_BASEURL02=MyFastSrv/
75+
PLBWEB_REST_CMDLINE02=c:\sunbelt\plbwin.108A\code\plbwin -i c:\sunbelt\plbwebsrv.108A\code\plbwin_rest.ini -h %s phonefcgi
76+
PLBWEB_REST_USE_FCGI02=ON
77+
PLBWEB_REST_PORTNUM02=9000
78+
PLBWEB_REST_MAX_COUNT02=2
79+
#
80+
######################################################
5281
#...............................................................................
5382
# PLBWEB_PROGRAM_ROOT={drive:path} can be used to specify a root directory
5483
# where PLB programs are directly executed as specified in the browser URL.
@@ -120,5 +149,5 @@ PLBWEB_ADDRESS=127.0.0.1:8081
120149
ADMIN_LOCALACCESS=OFF
121150
# ADMIN_LOGLEVEL=2
122151
ADMIN_ShellIcon=on
123-
124152
ADMIN_SRVNAME=Dev Plb Web Server
153+
#

rest_server/plbwin_rest.ini

Lines changed: 4 additions & 4 deletions
321 KB
Binary file not shown.

0 commit comments

Comments
 (0)