Skip to content

windhooked/saprest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f873d38 · Apr 29, 2024

History

15 Commits
Nov 27, 2019
Apr 29, 2024
Nov 27, 2019
Jun 24, 2020
Nov 27, 2019
Jan 17, 2020

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