In OpenAPI Generator: create HTML docs instead of Markdown? - openapi-generator

I am making a Python Client library from an OpenAPI document using the below command. When I do this, it generates docs for the client library inside the myapp_rest/docs directory. These docs are in MarkDown, but I would prefer to make them in HTML. Is there a way to do this?
I saw using the html generator, but that makes html documents for the original REST API and I want the docs for the Python Client.
Any help would be appreciated, thanks,
Steve
java -jar openapi-gen.jar generate -i "C:\Projects\Python\openapi.yaml"
-g python
-o C:\Projects\Python\myapp_rest
--additional-properties=pythonAttrNoneIfUnset=true,
packageName=myapp_rest,
projectName='MyApp RESTful Service'
--template-dir ./out

Related

Documentation of Hydra Config

Hydra provides a way to dynamically create a hierarchical configuration by composition and override it through config files and the command line, leveraging OmegaConf. I look for a recommended way to document the parameters but I could not find (a documented) one. What are best practices for that? Coming from argparse, I like the way of documenting the parameter inline, i.e. close to the code.
Excellent question! The answer is: parameter-by-parameter documentation is not yet implemented (as of Hydra v1.1, OmegaConf v2.1).
The future plans are:
in OmegaConf, expose an API allowing users to attach documentation (and other metadata) to each field of a structured config. See this open OmegaConf issue.
Once the above is complete, implement a Hydra feature allowing a parameter-specific help messages to be printed based on the parameter's metadata. See this open Hydra issue.
For now, the best we can do is to customize the general application help message (i.e. the --help command line flag).

Python 3.X Robot Framework: Library To Use to push SOAP Request To Services/Listener

I am trying to learn about any library which is good to use with Python 3.X where Script can send the SOAP/XML request to Listener/Services and Capture the response.
HttpLibrary.HTTP cant work with python 3. similar case with JASONLibrary. Any suggestions?
I used "suds" library to send SOAP requests and it worked fine.
Please give it a try. The instructions are in the below link
Python3-Suds
Also check the Robot Suds library
Robot-Suds

scaffolding - Is there any alternative to angular-cli for service generation?

I'm looking for a generic scaffolding tool (JS or Python code output) like yeoman, that supports service generation feature like in angular-cli (ng g s myservice).
Any idea?
You should have a look at Telosys : http://www.telosys.org/
This tool is designed to scaffold very quickly. It uses simple/light text model (DSL) with customizable templates (based on Velocity).
It can generate code for any kind of languages and you can create your own templates.
For JS with NodeJS you can try this set of templates: https://github.com/so-technology-watch/telosys-templates-nodejs
For Python you can use the following templates :
Python REST with Bottle : https://github.com/telosys-templates-v3/python-web-rest-bottle
Python persistence with SQL alchemy : https://github.com/telosys-templates-v3/python-persistence-sqlalchemy
You can also generate PostMan scripts for REST tests with: https://github.com/telosys-templates-v3/web-rest-postman

How can I use Opus-Codec in my Java Application

I read a lot about opus-codec but I am not understanding how can I use that in my sample java application.
Is there any .so file available for opus which can be used?If not then how?
There is currently not yet (at time of writing) any native Java library for Opus.
The Jitsi project is a Java-based VOIP and chat client which has Opus support. This is implemented by using a binary libopus library with a Java wrapper.
You would need to use JNA to create a wrapper around libopus that you can call from Java. I have done something like that in C#: http://opusdotnetinvoke.codeplex.com/
It should be easy to rewrite that C# code into Java.

How to emulate a browser preferably usinng Python or a Linux tool

I have the URL / Request Header / POST contents . Is it possible for me to sent the query to the server and get the output HTML and Javascript ?
This is a AJAX stuff , but still I think we can emulate using HTTP .
Is there a convenient method for this using Python ? Or is there a GUI tool ,
that would just lee enter the all the REQUEST HEADER options and also the POST contents and get the desired output ?
On perl you have LWP::UserAgent module. Python have sth similar urllib2 (it should be in core libraries). You may also need "Beautiful Soup" for html/xml parsing.
You can use "wget" which should be available for most distros.
Read up on --post-file and --header.
http://linux.die.net/man/1/wget
In Python you also have Google's httplib2 which has a higher level interface than urllib2.
For further detail see Python urllib vs httplib?

Resources