To enable REST in Microsiga Protheus®, edit the appserver.ini configuration file with the following content. To avoid conflict, be mindful of the communication ports used: [HTTPV11] Enable=1 AddressFamily=1 Sockets=HTTPREST TimeOut=120 [HTTPREST] Port=8889 IPsBind= MaxQueue=10 URIs=HTTPURI SECURITY=0 [HTTPURI] URL=/ PrepareIn=99,01 OnStart=REST_START OnConnect=REST_CONNECT OnExit=REST_EXIT Instances=1,10 [ONSTART] jobs=HTTPJOB [HTTPJOB] MAIN=HTTP_START ENVIRONMENT=P12 You also need to add item MAXSTRINGSIZE=10 in [General] and of FWFRAME_TRACELOG=0 in the environment block. The configuration above follows the Protheus REST defaults; therefore, if the resource is already enabled in Protheus, you do not need to make any changes. You can use authentication HTTP Basic or Auth 1.0a. To do so, change item SECURITY [HTTPREST] to 1 or delete it. |