cancel
Showing results for 
Search instead for 
Did you mean: 

Custom API code in SAP API Management

0 Kudos

Good morning, dear.

I'm starting a project involving the development of APIs.

I would like information on how to code an custom API using SAP API Management?

What kind of programming language should I use to develop an custom API and later deploy it in SAP API Management?

What are the tools can I use to develop a custom API and deploy SAP API Management?

Is there an example for custom API code that is possible to use on SAP API Management that can be followed as a template?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Good morning Martinez,

Thank you for the informations.

But I have some more doubts that are:

I'm developing an API using the Node.js language on my local machine. How do I deploy this API in SAP Cloud API Management?

Do I need to just click the import API button in SAP Cloud API Management?

Another question that I would like to do is regarding which SAP Cloud Platform service I should use to serve my client.

Here is the scenario that my client has today.

Legacy Workflow System (Non SAP) -> Sensedia Platform API -> ERP Legacy System (Non SAP). This is a synchronous scenario.

The Legacy Workflow System calls an API that is implemented in the API Plataform Sensedia software. This API has the functionality of searching data, through a view, into an oracle database and returns the result to the Legacy Workflow system.

The customer's goal is to replace API Platform Sensedia software with SAP HCI-CPI. From what I've been researching, this scenario can be done through SAP API Managemente and API Designer without the need to use SAP HCI-CPI. Is this my understanding correct?

My other question is: How do I use an API developed in JAVA or Node.js, responsible for searching data in an oracle database, with SAP HCI-CPI?

Could you help me please?

Regards,

Sérgio Salomão

ElijahM
Advisor
Advisor
0 Kudos

Hi Ramos,

You can either use the API Designer, to develop an Open API spec API in SAP API Management, and see examples here:
https://blogs.sap.com/2016/10/19/api-management-speak-openapi/
https://blogs.sap.com/2017/12/13/sap-api-management-api-implementation-and-management-on-cloud-found...

Or write the API in the language of your choice on SAP Cloud Platform, and wrap it in SAP API Management. SAP API management can wrap any HTTP enabled API, whether written in NodeJS, Spring, JAVA, or any code of your choice.

As a very basic example: https://developers.sap.com/tutorials/hcp-java-basic-app.html

You could develop a basic JAVA app in SAP CP, and then use the APP endpoint URL to wrap with SAP API Management.

I hope this helps.

Regards,
Elijah