Generate clients for apis with #Hidden annotations via openapi-generator - openapi-generator

I'm using swaggerCodegen to generate Apis clients for a Spring based application using org.openapitools.openapi-generator-cli. I marked some operations with #io.swagger.v3.oas.annotations.Hidden. Swagger codegen is not generating client stubs for these. Is there a config to hide them in the Swagger documentation, but still generate client code?

Related

Calling Firebase Remote Config REST API without auth

I want to use Firebase Remote Config API via REST in a mobile app. Due to technical limitations, I can't use the Android/iOS SDK so I have to resort to the REST API.
However, that API requires authentication using a private key -- obviously I can't include that key in the application.
I don't need any other Firebase service at this time, just the remote config.
How can I work around this limitation? I tried following the guide at https://firebase.google.com/docs/remote-config/use-config-rest, but as mentioned it requires to first generate a short-lived OAuth2 token using the auth API.
According to the documentation on using the Remote Config REST API:
This document describes how you can use the Remote Config REST API to read and modify the set of JSON-formatted parameters and conditions known as the Remote Config template.
So the REST API is for modifying Remote Config variables, the type of action you could also do in the Firebase console. It is not for use in regular clients, which consume the configuration variables. For that you'll have to use one of the provided clients, as there is no REST API and the wire protocol is not documented.

Can SoapUi publish arbitrary messages onto a JMS Queue?

In the past my team has often used SoapUi to create automated tests around our SOAP webservice. Now we would like to create automated tests around our app's JMS communication. Therefore, we need to configure SoapUi to publish to and consume from our JMS queues.
The SoapUi website explains how to publish SOAP messages to a JMS queue. But this does not fit my usecase; my app sends arbitrary text messages over JMS without conforming to a SOAP contract.
Is SoapUi able to publish arbitrary text messages to a JMS queue, or must my messages conform to a SOAP contract defined by a wsdl? How would I configure SoapUi to publish these messages without it creating a dummy SOAP interface for the JMS connection to reside in?
The free version of SoapUi is intended to use test SOAP and REST. As the above link shows, SoapUi can be configured - through its GUI - to send messages over JMS only when these messages conform to a SOAP contract. However, SoapUi is also able to execute Groovy scripts, and these Groovy scripts can publish arbitrary messages to JMS. With the help of my team, I wrote a Groovy script which imports a Java library and uses this to publish arbitrary JMS messages.

Cloudfoundry actuator endpoints in a .net core console application hosted by GenericHost

I have a question about CloudFoundry actuator endpoints in a .net core console application using Steeltoe. I am planning to use generic host https://jmezach.github.io/2017/10/29/having-fun-with-the-.net-core-generic-host/ to perform some background task. I would like to use few actuator endpoints e.g.Health actuator. I could find samples with WebHost here https://github.com/SteeltoeOSS/Samples/blob/dev/Management/src/AspDotNetCore/CloudFoundry/Startup.cs. The below code needs IApplicationBuilder
// Add management endpoints into pipeline
app.UseCloudFoundryActuators();
So it is possible to use actuator endpoints in a console application which is hosted by generic host. Any samples are most welcome. Thanks in advance.
Steeltoe 3.0 added a variety of extensions for using Management/Actuators with HostBuilder. Check out this file for some examples.
It would also be possible to add another implementation of the actuator endpoints that communicate over something other than HTTP (perhaps RabbitMQ as an example), Steeltoe Management was built with portable base endpoint functionality in mind - but then you would also need a new application for interacting with them, and you wouldn't be able to use them with Apps Manager on PCF.

Support for OAuth 2.0 PKCE

Is there support for Proof Key for Code Exchange by OAuth Public Clients on Apigee cloud? I couldn't find any reference to it on the online documentation. If not supported, is it on the roadmap?
this should be fairly simple to do, all you need is to create the proper policies in your oauth proxies... we have a solution for openid connect on top of apigee and just added this in a few hours.
PKCE just requires that you store the code_challenge in a cache you can retrieve when about to create the access token, and then it requires you be able to re create from code_verifier + method... this can be done with a node backend, or by importing the proper libraries in a JS callout ( or java callout if that is your thing.)
we used node for this

Need an example of using design by contract in Symfony

I am trying to build an API proxy for an external API in my Symfony app. So my Symfony app uses design by contract principle. So a backend service to query the external API.
I need to use "coding by contract" principle with an interface so that the API is easily exchangeable with other services.
I am looking for an example which illustrates this concept.

Resources