Create API using runtime | Community
Skip to main content
Alexis_Cazes_
Level 10
January 15, 2020
Solved

Create API using runtime

  • January 15, 2020
  • 2 replies
  • 6046 views

i read the following documentation that explain how to create an API: https://www.adobe.io/apis/experienceplatform/runtime/docs.html#!adobedocs/adobeio-runtime/master/guides/creating_rest_apis.md

 

Is there a more detailed step by step example like this one https://opensource.adobe.com/faast-path-to-beautiful-apps/

 

To be able to use the API we need to make sure the response contains the headers 

Access-Control-Allow-Origin

I have seen in the documentation: https://www.adobe.io/apis/experienceplatform/runtime/docs.html#!adobedocs/adobeio-runtime/master/guides/creating_actions.md

You can also set cookies or cache control headers, perform a HTTP redirect, and so forth.

Any example on how to do this ? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by mihai-corlan

Hello Alexis,

 

Luckily, I/O Runtime is built on top of an open source project, Apache OpenWhisk. There are a ton more of resources out there that go in great details. I noted this request, and when time permits we will add a more detailed docs on creating RESTful APIs.

 

Regarding Cache Control, you can find an example here: https://www.adobe.io/apis/experienceplatform/runtime/docs.html#!adobedocs/adobeio-runtime/master/guides/throughput_tuning.md Doing a redirect, would be as simple as the example above, just using the redirect header.

 

Cheers,

Mihai

2 replies

mihai-corlanAdobe EmployeeAccepted solution
Adobe Employee
January 24, 2020

Hello Alexis,

 

Luckily, I/O Runtime is built on top of an open source project, Apache OpenWhisk. There are a ton more of resources out there that go in great details. I noted this request, and when time permits we will add a more detailed docs on creating RESTful APIs.

 

Regarding Cache Control, you can find an example here: https://www.adobe.io/apis/experienceplatform/runtime/docs.html#!adobedocs/adobeio-runtime/master/guides/throughput_tuning.md Doing a redirect, would be as simple as the example above, just using the redirect header.

 

Cheers,

Mihai

Adobe Employee
April 14, 2020