Skip to content

REST-to-Magic eDeveloper/uniPaaS/XPA proxy written in GoLang. Currently proof of concept only.

Notifications You must be signed in to change notification settings

farseeker/go-magic-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang REST-to-Magic (eDeveloper, uniPaas, XPA) proxy.

Very much just a proof of concept prototype at the moment.

Required IIS features:

Define the following server variables in URL Rewrite:

  • HTTP_X_Forwarded_Appname
  • HTTP_X_Forwarded_Host
  • HTTP_X_Forwarded_Proto
  • HTTP_X_Scripts_Path

Bind the iis folder as an IIS website. In the IIS rewrite rule for the test site, set HTTP_X_Forwarded_Appname under Server Variables to be the name of the APPNAME you want to forward requests to (e.g. MGRestTest)

When making requests, the path must be exactly /api/PRGNAME (e.g. /api/RESTTest).

This will proxy a request to a URL of http://localhost/uniScripts/mgrqispi.dll?APPNAME=MGRestTest&PRGNAME=RESTTest

The body of the request should be a JSON blob of key/value pairs. The key/value pairs will be converted into form parameters on the submission.

About

REST-to-Magic eDeveloper/uniPaaS/XPA proxy written in GoLang. Currently proof of concept only.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published