Skip to content

windhooked/saprest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAP REST Gateway Service

A simple service for interfacing with SAP NW RFC in REST, REST to SAP RFC Gateway

The services makes use of https://github.com/SAP/gorfc and echo

It encodes/decodes JSON from from and to map[string]interface{}

Currently with no security

Env

To compile you should have these set. For env variables to connect look at sap.go

CGO_LDFLAGS_ALLOW=.*

CGO_CFLAGS_ALLOW=.*

CGO_CXXFLAGS_ALLOW=.*

SAPNWRFC_HOME=/home/phiadmin/sap/nwrfcsdk/

CGO_CFLAGS=-I /home/phiadmin/sap/nwrfcsdk/include

CGO_LDFLAGS=-L /home/phiadmin/sap/nwrfcsdk/lib

Usage

curl -X POST -H "Content-Type: application/json" -d '{}' http://localhost:8088/rfc/RFC_PING

curl -X POST -H "Content-Type: application/json" -d '{}' http://localhost:8088/rfc/STFC_STRUCTURE

curl -X POST -H "Content-Type: application/json" -d '{ "QUERY_TABLE" :"T000" }' http://localhost:8088/rfc/RFC_READ_TABLE

About

SAP REST Gateway Service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published