Custom Route in an App for using in Cloud Shops - shopware

Is it possible to add custom routes in an app which are also valid in a cloud shop? I couldnt find anything about it in the docs.

You can implement custom endpoints using app scripts.

Related

Client permissions on serverless Azure Web PubSub

I've successfully followed the Tutorial - Create a serverless chat using the Azure Web PubSub service.
Now I require giving the clients different permissions based on their ID. Also, add them to different groups.
The documentation on this matter is using a NodeJs server, but it says nothing about how to accomplish this using serverless Functions.
Is there a piece of documentation I am missing? Do you have any lead or example to share on how to manipulate permission on the negotiate function?
After a lot of digging around, I finally found this repository with examples on what I wanted to accomplish:
https://github.com/Azure/azure-webpubsub/blob/main/samples/functions/js/simplechat-wpscontext/connected/index.js

Swagger connected to Azure ..now what?

I connected my swagger PetStore api to Azure using swagger Azure API Management integration.
Now that it made it in azure; Where do I implement the actual logic of querying my azure database etc?
Using swagger if I generate a Node server stub I get the following generated. But these are not available if I use API management integration.
In the Backend section I only see Logic Apps and endpoint options. I tried the Logic App stuff but it seems I need 50 logic apps if I have api that large...Am I missing something?
Maybe you need to use SwaggerHub.
The Swagger UI you are currently using belongs to the community version and should not support direct integration. Assuming there are 100 api interfaces, you need to add 100 times in azure apim.

Best way to expose a Function App in a UI (swagger-like) for testing?

I am about to delivery a serveless API in Function App, with 5 functions, and my client needs some sort of interactive documentation with the testing environment. They accept Swagger and graphql endpoints, but I insisted on pursuing the servelss aproach, so now I'm stuck with this quick problem. Should I simply make a swagger-like wrapper application? Is there any known framework that documents and exposes Function Apps?
Instead of a wrapper application, the official recommendation is to pair Azure Functions with Azure API Management (which also has a consumption-based plan) to expose your functions with a swagger definition.
Along with now having a swagger definition, Azure APIM provides lots of functionality like rate limiting, authentication, caching etc. which you can read more about in the official APIM docs.

Creating an custom API using existing API

I am trying to set up a custom API for my application. This is a corporate application that I installed in my environment. The application comes with it's own out-of-the-box REST API, but I'm looking for a way to create my own custom API leveraging the existing one. The reason I want to create a custom API is because of all the customizations that have been made to the underlying database. I'm looking at using Node.js and the Express application framework to create the custom API, but all the use cases I've seen for this are for creating new APIs from scratch. I guess my question would be, how can I integrate my existing web services API into a Node.js (Express) set up. My existing web services API runs an Apache Tomcat web service. This publishes the existing web service endpoints in a format like this:
http://://?fields=,...
I'm looking for tips, pointers or something that can point me in the right direction. If there are any alternate (better) solutions available aside from Node.js (Express) I am open to exploring that as well.

Azure pre-compiled Functions not available to Logic Apps

We are utilising visual studio 2017 and azure precompiled functions in VB.NET. All functions run successfully locally using the func.exe CLI tool. We can publish the Function App to Azure where we can see and test within the portal.
The problem exists when we try to use the functions as part of a logic app. We can add an action selecting Azure Functions and can see our function app, but none of the underlying functions are available/missing.
What am i missing?
Edit
I am using http triggers and web hooks.
Edit
It was indeed the custom routes
I had a similar issue with logic app. some of my HttpTrigger functions worked fine and others not. I figured out that the only difference was the routing. functions that used custom routes did not show up in the logic app action selector. I've just removed the custom routes and everything work fines.
I've openned an issue here :
Discover HttpTrigger Functions from Logic App does not work with custom routes
**EDIT: **
Here is the answer from the Azure Team:
This is by design. As Functions with routes as the way the Azure Function is invoked from Logic Apps is via calling an API "list invoke URL." That URL will look something like https://function.azurewebsites.net/api/my/{custom}/route?code=123 and Logic App doesn't have a way to parse the route template. In other words we don't know what is static, and what should be replaced, and don't have a way to "replace" that with the native action.
You can get around it by providing an OpenAPI definition for the function and we will render the card based on the path parameters specified in swagger. Can also not use route if need to show in Logic Apps.
Only functions of type 'Generic Web Hooks' are supported by Logic Apps. You don't state what type you are using, but if you are using 'http trigger' functions, that could be the problem.
In javascript functions a need to remove route section from function.json
So, i can add this function from Logic Apps Designer

Resources